Opher Shachar created KARAF-2384:
------------------------------------

             Summary: karaf.bat fails to cd to %KARAF_BASE% under some 
circumstances
                 Key: KARAF-2384
                 URL: https://issues.apache.org/jira/browse/KARAF-2384
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 2.3.1
         Environment: Windows 7 + JDK1.6
            Reporter: Opher Shachar


Under Windows when Apache Karaf is installed on one drive (eg. D\:) and 
_*karaf.bat*_ is started from a command line with current directory on another 
drive (eg. user home directory on drive C\:) then the current directory for the 
Java process doesn't change to %KARAF_BASE%. The _*cd*_ command would need to 
be:{code}cd /d %KARAF_BASE%{code}
On the flip side, this will not suffice for when Karaf is installed on a 
network drive (eg. \\Server\Share\apache-karaf). For this the _*cd*_ command 
would need to be changed to:{code}pushd %KARAF_BASE%{code}
If _*pushd*_ is used then _*popd*_ should be executed after the _java_ command 
so that any temporary drive letter allocated by _pushd_ (if _karaf.bat_ was 
executed from a UNC path) is released.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to