You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/07/14 18:54:49 UTC

[jira] [Assigned] (KARAF-2384) karaf.bat fails to cd to %KARAF_BASE% under some circumstances

     [ https://issues.apache.org/jira/browse/KARAF-2384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-2384:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> 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
>            Assignee: Jean-Baptiste Onofré
>
> 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 share (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