You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Mark DeLaFranier (JIRA)" <ji...@apache.org> on 2006/11/08 16:02:51 UTC

[jira] Created: (GERONIMO-2555) Windows scripts don't work when used from different drive

Windows scripts don't work when used from different drive
---------------------------------------------------------

                 Key: GERONIMO-2555
                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: general
    Affects Versions: 1.2
         Environment: Windows XP
            Reporter: Mark DeLaFranier


If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.

In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=all ]

Donald Woods updated GERONIMO-2555:
-----------------------------------

        Fix Version/s: 1.1.2
                       1.2
    Affects Version/s: 1.1.2

> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2, 1.1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>             Fix For: 1.2, 1.1.2
>
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=all ]

Dain Sundstrom reassigned GERONIMO-2555:
----------------------------------------

    Assignee: Dain Sundstrom

> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2, 1.1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>         Assigned To: Dain Sundstrom
>             Fix For: 1.1.2, 1.2, 2.0
>
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Mark DeLaFranier (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=all ]

Mark DeLaFranier updated GERONIMO-2555:
---------------------------------------

    Attachment: GERONIMO-2555.patch

The patch is relative to the assemblies directory.

I've also modified the startup and shutdown batch files to perform the same directory checks as geronimo and deploy for consistency.

TODO: It would be nice to have these 4 scripts invoke a common-setup.bat so they don't have to duplicate logic.

> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=all ]

Vamsavardhana Reddy updated GERONIMO-2555:
------------------------------------------

    Fix Version/s: 2.0

> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2, 1.1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>             Fix For: 1.1.2, 1.2, 2.0
>
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=all ]

Dain Sundstrom updated GERONIMO-2555:
-------------------------------------

    Affects Version/s:     (was: 1.1.2)

> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>         Assigned To: Dain Sundstrom
>             Fix For: 1.2, 1.1.2, 2.0
>
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=all ]

Dain Sundstrom closed GERONIMO-2555.
------------------------------------

    Resolution: Fixed

Applied to 1.2 and 2.0.

Thanks for the patch!

> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>         Assigned To: Dain Sundstrom
>             Fix For: 1.1.2, 1.2, 2.0
>
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2555) Windows scripts don't work when used from different drive

Posted by "Mark DeLaFranier (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2555?page=comments#action_12448157 ] 
            
Mark DeLaFranier commented on GERONIMO-2555:
--------------------------------------------

Sorry, I forgot to paste a comment with the old and new output so that you can see the change in behaviour:

Without the '/d' check:
=======================

[M:\] > d:\geronimo\1.2\bin\deploy.bat --user system --password manager deploy d:\geronimo\1.2\test-plan.xml
[M:\] > if "Windows_NT" == "Windows_NT" goto okOsCheck
[M:\] > setlocal
[M:\] > if not "d:\geronimo\1.2" == "" goto resolveHome
[M:\] > set CURRENT_DIR=M:\
[M:\] > cd d:\geronimo\1.2
[M:\] > set GERONIMO_HOME=M:\
[M:\] > cd M:\
[M:\] > if exist "M:\\bin\deploy.bat" goto okHome
[M:\] > echo The GERONIMO_HOME environment variable is not defined correctly
The GERONIMO_HOME environment variable is not defined correctly

[M:\] > echo This environment variable is needed to run this program
This environment variable is needed to run this program

[M:\] > set ERRORLEVEL=1
[M:\] > goto end
[M:\] > echo.


With the '/d' check:
====================

[M:\] > d:\geronimo\1.2\bin\deploy.bat --user system --password manager deploy d:\geronimo\1.2\pb-server-plan.xml
[M:\] > if "Windows_NT" == "Windows_NT" goto okOsCheck
[M:\] > setlocal
[M:\] > if not "d:\geronimo\1.2" == "" goto resolveHome
[M:\] > set CURRENT_DIR=M:\pb-server 1.4\bin
[M:\] > cd /d d:\geronimo\1.2
[D:\geronimo\1.2] [jagmain_delafran_vu] > set GERONIMO_HOME=D:\geronimo\1.2
[D:\geronimo\1.2] [jagmain_delafran_vu] > cd /d M:\pb-server 1.4\bin
[M:\] > if exist "D:\geronimo\1.2\bin\deploy.bat" goto okHome
[M:\] > if exist "D:\geronimo\1.2\bin\setenv.bat" call "D:\geronimo\1.2\bin\setenv.bat"
[M:\] > set jdkOrJreHomeSet=0
[M:\] > if not "" == "" set jdkOrJreHomeSet=1

rest continues and proceeds to deploy


> Windows scripts don't work when used from different drive
> ---------------------------------------------------------
>
>                 Key: GERONIMO-2555
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2555
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: general
>    Affects Versions: 1.2
>         Environment: Windows XP
>            Reporter: Mark DeLaFranier
>         Attachments: GERONIMO-2555.patch
>
>
> If the scripts: geronimo.bat, startup.bat, shutdown.bat, deploy.bat are launched from a drive other than the one Geronimo is located the "cd" portions do not work when trying to determine the script location.
> In order for a cross drive CD to work, the /d option must be used.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira