You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Patrick Luby <pa...@sun.com> on 2002/08/05 18:34:13 UTC
[PATCH] jakarta-ant HEAD branch
Attached is a patch to the ant and antRun scripts in the src/script
directory. This patch does the following:
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.
If these patches are OK, can someone please commit them?
Thanks,
Patrick
--
________________________________________________________________
Patrick Luby Email: patrick.luby@sun.com
Sun Microsystems Phone: 408-276-7471
901 San Antonio Road, USCA14-303
Palo Alto, CA 94303-4900
________________________________________________________________