diff --git a/WHATSNEW b/WHATSNEW index 1618700b7..cdfa8b5b3 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -69,6 +69,8 @@ Fixed bugs: 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 has been reenabled. diff --git a/src/main/org/apache/tools/ant/types/Path.java b/src/main/org/apache/tools/ant/types/Path.java index 9f71ab21e..1a3d3ceb5 100644 --- a/src/main/org/apache/tools/ant/types/Path.java +++ b/src/main/org/apache/tools/ant/types/Path.java @@ -602,7 +602,17 @@ public class Path extends DataType implements Cloneable { + 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")