Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 66400 invoked by uid 500); 13 Sep 2001 18:04:29 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Delivered-To: moderator for ant-dev@jakarta.apache.org Received: (qmail 18925 invoked from network); 13 Sep 2001 17:35:03 -0000 Message-ID: <3BA0EDE7.89B72CDE@sun.com> Date: Thu, 13 Sep 2001 10:33:27 -0700 From: Patrick Luby X-Mailer: Mozilla 4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 To: ant-dev@jakarta.apache.org Subject: [PATCH] Ant 1.4 bootstrap.sh bug fix Content-Type: multipart/mixed; boundary="------------311F701A263EC52F8461579E" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------311F701A263EC52F8461579E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 -- _____________________________________________________________________ Patrick Luby Email: patrick.luby@eng.sun.com Software Engineering Manager Phone: 408-863-3284 Sun Microsystems, Desktop Foundation Software 901 San Antonio Road, UCUP01-103 Palo Alto, CA 94303-4900 _____________________________________________________________________ --------------311F701A263EC52F8461579E Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="0"; name="patchfile.txt" Content-Transfer-Encoding: 7bit Content-Description: Document Content-Disposition: inline; filename="patchfile.txt" --- 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 --------------311F701A263EC52F8461579E--