peterreilly 2004/12/03 06:01:45 Modified: src/main/org/apache/tools/ant Tag: ANT_16_BRANCH AntClassLoader.java Log: sync Revision Changes Path No revision No revision 1.76.2.9 +3 -3 ant/src/main/org/apache/tools/ant/AntClassLoader.java Index: AntClassLoader.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/AntClassLoader.java,v retrieving revision 1.76.2.8 retrieving revision 1.76.2.9 diff -u -r1.76.2.8 -r1.76.2.9 --- AntClassLoader.java 27 Jul 2004 07:15:10 -0000 1.76.2.8 +++ AntClassLoader.java 3 Dec 2004 14:01:45 -0000 1.76.2.9 @@ -47,7 +47,7 @@ */ public class AntClassLoader extends ClassLoader implements SubBuildListener { - private static final FileUtils fileUtils = FileUtils.newFileUtils(); + private static final FileUtils FILE_UTILS = FileUtils.newFileUtils(); /** * An enumeration of all resources of a given name found within the @@ -908,7 +908,7 @@ if (resource.exists()) { try { - return fileUtils.getFileURL(resource); + return FILE_UTILS.getFileURL(resource); } catch (MalformedURLException ex) { return null; } @@ -923,7 +923,7 @@ ZipEntry entry = zipFile.getEntry(resourceName); if (entry != null) { try { - return new URL("jar:" + fileUtils.getFileURL(file) + return new URL("jar:" + FILE_UTILS.getFileURL(file) + "!/" + entry); } catch (MalformedURLException ex) { return null;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]