bodewig 2002/12/13 04:29:33
Modified: . WHATSNEW
src/main/org/apache/tools/ant/types Path.java
Log:
IBM has decided that one runtime jar simply is not enough.
PR: 15289
Submitted by: Ville Skytt� <ville dot skytta at iki dot fi>
Revision Changes Path
1.332 +2 -0 jakarta-ant/WHATSNEW
Index: WHATSNEW
===================================================================
RCS file: /home/cvs/jakarta-ant/WHATSNEW,v
retrieving revision 1.331
retrieving revision 1.332
diff -u -r1.331 -r1.332
--- WHATSNEW 10 Dec 2002 16:38:25 -0000 1.331
+++ WHATSNEW 13 Dec 2002 12:29:33 -0000 1.332
@@ -69,6 +69,8 @@
from the system classloader. The packages are determined by the
version of the JVM running Ant.
+* Ant didn't find the runtime libraries on IBM's JDK 1.4 for Linux.
+
Other changes:
--------------
* The filesetmanifest attribute of <jar> has been reenabled.
1.42 +11 -1 jakarta-ant/src/main/org/apache/tools/ant/types/Path.java
Index: Path.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/Path.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- Path.java 25 Jul 2002 15:21:21 -0000 1.41
+++ Path.java 13 Dec 2002 12:29:33 -0000 1.42
@@ -602,7 +602,17 @@
+ File.separator + "jre"
+ File.separator + "lib"
+ File.separator + "rt.jar"));
-
+
+ // IBM's 1.4 has rt.jar split into 5 smaller jars.
+ String[] ibmJars =
+ { "core", "graphics", "security", "server", "xml" };
+ for (int i = 0; i < ibmJars.length; i++) {
+ addExisting(new Path(null,
+ System.getProperty("java.home")
+ + File.separator + "lib"
+ + File.separator + ibmJars[i] +
".jar"));
+ }
+
// Added for MacOS X
addExisting(new Path(null,
System.getProperty("java.home")
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>