This is the mail archive of the rhug-rhats@sources.redhat.com mailing list for the RHUG project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ant fix for gcj


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]