This is the mail archive of the
rhug-rhats@sources.redhat.com
mailing list for the RHUG project.
ant fix for gcj
- From: Anthony Green <green at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: rhug-rhats at sources dot redhat dot com
- Date: Sat, 15 May 2004 22:07:00 -0700
- Subject: ant fix for gcj
- Organization: Red Hat, Inc.
Gary,
I just filed a bug report and patch with the ant people:
http://issues.apache.org/bugzilla/show_bug.cgi?id=29020
This patch (against upstream ant cvs) adds the proper libgcj.jar file to
the bootclasspath when required (building with jikes, or ecj, etc).
Would it be ok to commit something similar to the rhug ant?
Index: src/main/org/apache/tools/ant/types/Path.java
===================================================================
RCS file: /home/cvspublic/ant/src/main/org/apache/tools/ant/types/Path.java,v
retrieving revision 1.62
diff -u -r1.62 Path.java
--- src/main/org/apache/tools/ant/types/Path.java 9 Mar 2004 16:48:41 -0000 1.62
+++ src/main/org/apache/tools/ant/types/Path.java 16 May 2004 04:54:59 -0000
@@ -587,7 +587,10 @@
}
}
- if (System.getProperty("java.vendor").toLowerCase(Locale.US).indexOf("microsoft") >= 0) {
+ if ("GNU libgcj".equals(System.getProperty("java.vm.name"))) {
+ addExisting(new Path(null,
+ System.getProperty("sun.boot.class.path")));
+ } else if (System.getProperty("java.vendor").toLowerCase(Locale.US).indexOf("microsoft") >= 0) {
// Pull in *.zip from packages directory
FileSet msZipFiles = new FileSet();
msZipFiles.setDir(new File(System.getProperty("java.home")
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.