summaryrefslogtreecommitdiff
path: root/src/script/antRun
diff options
context:
space:
mode:
authorCostin Manolache <costin@apache.org>2002-08-08 17:07:48 +0000
committerCostin Manolache <costin@apache.org>2002-08-08 17:07:48 +0000
commit8d673eadc08335e5a86ca859ac4bc164d15c48d6 (patch)
treea4084e7af603dbf829192c92af7864454489c58b /src/script/antRun
parentf052bb39d64c30142e1fc7ecaca895cd8a2a4c6b (diff)
downloadant-8d673eadc08335e5a86ca859ac4bc164d15c48d6.tar.gz
Submited the patch from Patrick.
1. Removes the extraneous "cd `dirname $PRG`" line that causes the script to break when Ant is invoked with from a relative path (i.e. ../jakarta-ant/bin/ant). 2. Properly quote all environment variables that may contain paths. The script would break if any of these environment variables contained paths with spaces in them (a common occurrence on Windows). 3. Invoke Java using the "exec" shell command. There really is no need to create a child process to run the JVM and by using the "exec" command, there is less chance that killing the script will fail to kill Ant. PR: Obtained from: Submitted by: Patrick Luby <patrick.luby@sun.com> Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/script/antRun')
-rw-r--r--src/script/antRun2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/antRun b/src/script/antRun
index cf9272ef2..98c5ef5c1 100644
--- a/src/script/antRun
+++ b/src/script/antRun
@@ -9,4 +9,4 @@ CMD="$2"
shift
shift
-exec $CMD "$@"
+exec "$CMD" "$@"