The attached build script causes a NullPointerException in Ant 1.7.0. It seems to be due to the lack of a dir attribute in the fileset.
Created attachment 20006 [details] Test case that causes NullPointerException
Created attachment 20007 [details] Test case that causes NullPointerException
Thanks for the simple test case to reproduce the fault. Either the file or the dir attribute are mandatory on a fileset, the error message should be different though, and not just a NullPointerException On the current head version of ant the error is caused by --- Nested Exception --- java.lang.NullPointerException at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:565)
The NPE is now avoided and a BuildException (still terminating the build) is thrown instead.