Browse Source

Adapt to JDK 1.4.1 for Mac OS X.

Note that there are more jars in that directory that I'm not sure
about (whether we want to add them in addJavaRuntime, that is).


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274231 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
5e0218a965
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/main/org/apache/tools/ant/types/Path.java

+ 6
- 1
src/main/org/apache/tools/ant/types/Path.java View File

@@ -621,13 +621,18 @@ public class Path extends DataType implements Cloneable {
+ File.separator + "lib"
+ File.separator + "rt.jar"));

// Sun's 1.4 has JCE and JSSE in separate jars.
// Sun's and Apple's 1.4 have JCE and JSSE in separate jars.
String[] secJars = { "jce", "jsse" };
for (int i = 0; i < secJars.length; i++) {
addExisting(new Path(null,
System.getProperty("java.home")
+ File.separator + "lib"
+ File.separator + secJars[i] + ".jar"));
addExisting(new Path(null,
System.getProperty("java.home")
+ File.separator + ".."
+ File.separator + "Classes"
+ File.separator + secJars[i] + ".jar"));
}

// IBM's 1.4 has rt.jar split into 4 smaller jars and a combined


Loading…
Cancel
Save