DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5619>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5619 Handling non existing directories in 'java.ext.dirs' Summary: Handling non existing directories in 'java.ext.dirs' Product: Ant Version: 1.4.1 Platform: Other OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If a java VM adds default ext directories to the property 'java.ext.dirs' that dosn't exists, ant gets a failure while compileing via jikes at org.apache.tools.ant.types.FileSet.getDirectoryScanner. This appears on Mac OS X, but can also happend to other platforms. To avoid this bug use the following patch: --- jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java Sat Dec 29 13:13:00 2001 +++ orig/jakarta-ant-1.4.1/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java Thu Oct 11 15:58:29 2001 @@ -428,7 +428,7 @@ /** * Emulation of extdirs feature in java >= 1.2. - * This method adds all files in the given existing + * This method adds all files in the given * directories (but not in sub-directories!) to the classpath, * so that you don't have to specify them all one by one. * @param classpath - Path to append files to @@ -449,13 +449,10 @@ dirs[i] += File.separator; } File dir = project.resolveFile(dirs[i]); - // only add existing directories - if (dir.exists ()) { - FileSet fs = new FileSet(); - fs.setDir(dir); - fs.setIncludes("*"); - classpath.addFileset(fs); - } + FileSet fs = new FileSet(); + fs.setDir(dir); + fs.setIncludes("*"); + classpath.addFileset(fs); } } -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>