Hello,

I would like to submit the attached patch to the bootstrap.sh file of
the Ant 1.4 release:

The attached patch fixes a bug I found when running build.sh on Solaris.
Specifically, the bug is that all "-D" arguments that are to be used by
ant need to follow the ant classname argument. The original bootstrap.sh
has the "-Dant.home=." argument preceding the ant classname. Hence, the
"ant.home" property gets set as a System property by the JVM instead of
being passed as an argument to the org.apache.tools.ant.Main class.

Without this patch, the bootstrap of Ant 1.4 will always fail on Solaris
and, I assume, on most other Unix platforms.

Thanks,

Patrick
--- bootstrap.sh.orig   Thu Sep 13 10:18:51 2001
+++ bootstrap.sh        Thu Sep 13 10:18:49 2001
@@ -119,7 +119,7 @@
 
 cp -r ${CLASSDIR} build
 
-"${JAVACMD}" -classpath "${CLASSPATH}" -Dant.home=. org.apache.tools.ant.Main 
-emacs bootstrap
+"${JAVACMD}" -classpath "${CLASSPATH}" org.apache.tools.ant.Main -emacs 
bootstrap -Dant.home=.
 
 echo ... Cleaning Up Build Directories
 

Reply via email to