* ant fix for gcj
@ 2004-05-16 5:07 Anthony Green
0 siblings, 0 replies; only message in thread
From: Anthony Green @ 2004-05-16 5:07 UTC (permalink / raw)
To: Gary Benson; +Cc: rhug-rhats
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-16 5:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-16 5:07 ant fix for gcj Anthony Green
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).