aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-07-24 10:49:49 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-07-24 10:49:49 +0000
commit4765ec49ab8ef87b40f1edf895ca69ce1b051808 (patch)
tree321a2f864517e83928a7d62c5fca594d517c16fd /src/launcher.bash
parentbugfix on empty cp (diff)
downloadjava-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.bash4
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} "${@}"