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:08:53 UTC
[jira] Commented: (GERONIMO-2555) Windows scripts don't work when
used from different drive
[ 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