Trivial (2-character!) patch to the Bourne shell launcher. Using "$@"
rather than $@ means that you can pass in arguments with embedded spaces
and it will work naturally; otherwise ${key} will be set to "value" and
"with" and "spaces" will be treated as targets, for example. Seems to
work on Linux at least. antRun already uses it. I have no idea if
ant.bat works with spaces, or could be made to work.

-Jesse

-- 
Jesse Glick   <mailto:[EMAIL PROTECTED]>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR
Index: src/script/ant
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/script/ant,v
retrieving revision 1.1
diff -u -r1.1 ant
--- src/script/ant      2001/01/23 05:10:39     1.1
+++ src/script/ant      2001/01/25 09:33:07
@@ -113,4 +113,4 @@
   LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
 fi
 
-$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS 
org.apache.tools.ant.Main $@
+$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS 
org.apache.tools.ant.Main "$@"

Reply via email to