diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-07-24 10:49:49 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-07-24 10:49:49 +0000 |
commit | 4765ec49ab8ef87b40f1edf895ca69ce1b051808 (patch) | |
tree | 321a2f864517e83928a7d62c5fca594d517c16fd /src/launcher.bash | |
parent | bugfix on empty cp (diff) | |
download | java-config-4765ec49ab8ef87b40f1edf895ca69ce1b051808.tar.gz java-config-4765ec49ab8ef87b40f1edf895ca69ce1b051808.tar.bz2 java-config-4765ec49ab8ef87b40f1edf895ca69ce1b051808.zip |
allow cwd too be changed
svn path=/java-config-ng/branches/axxo/; revision=479
Diffstat (limited to 'src/launcher.bash')
-rw-r--r-- | src/launcher.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/launcher.bash b/src/launcher.bash index b515665..c30d6a5 100644 --- a/src/launcher.bash +++ b/src/launcher.bash @@ -44,5 +44,7 @@ gjl_args=$(gjl --get-args ${gjl_package}) || abort "Couldn't build classpath" if [[ -n ${GJL_DEBUG} ]]; then echo java ${gjl_args} ${gjl_java_args} ${gjl_starte} ${gjl_pkg_args} "${@}" >&2 fi - +if [[ -n ${gjl_pwd} ]]; then + cd ${gjl_pwd} +fi exec java ${gjl_args} ${gjl_java_args} ${gjl_starte} ${gjl_pkg_args} "${@}" |