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=24440>. 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=24440 ftp task, rmdir fails with NullPointerException if target directory is empty Summary: ftp task, rmdir fails with NullPointerException if target directory is empty Product: Ant Version: 1.6Beta Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] rmdir works fine with a fileset of **/* as long as there are directories to remove. But if the target directory is empty, the following stack trace results. <ftp action="rmdir" server="${ftpserver}" userid="${username}" password="${password}" remotedir="." > <fileset dir="." includes="**/*"> </fileset> </ftp> BUILD FAILED java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.checkRemoteSensitivity(FTP.java:566) at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.listFiles(FTP.java:550) at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.scandir(FTP.java:372) at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.checkIncludePatterns(FTP.java:276) at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.scan(FTP.java:240) at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1327) at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1422) at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2050) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]