From a30889de71888bc66c4c484cfbbefa994590c383 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 23 Jan 2003 15:11:12 +0000 Subject: [PATCH] Java Runtime Libraries in JDK 1.4 is a bit more than just rt.jar. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: 16242 Submitted by: Ville Skytt� git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273861 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/types/Path.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/Path.java b/src/main/org/apache/tools/ant/types/Path.java index abfd3bd24..506ae7754 100644 --- a/src/main/org/apache/tools/ant/types/Path.java +++ b/src/main/org/apache/tools/ant/types/Path.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2002 The Apache Software Foundation. All rights + * Copyright (c) 2000-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -621,7 +621,17 @@ public class Path extends DataType implements Cloneable { + File.separator + "lib" + File.separator + "rt.jar")); - // IBM's 1.4 has rt.jar split into 5 smaller jars. + // Sun's 1.4 has 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")); + } + + // IBM's 1.4 has rt.jar split into 4 smaller jars and a combined + // JCE/JSSE in security.jar. String[] ibmJars = { "core", "graphics", "security", "server", "xml" }; for (int i = 0; i < ibmJars.length; i++) {