ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24440] New: - ftp task, rmdir fails with NullPointerException if target directory is empty
Date Wed, 05 Nov 2003 19:05:49 GMT
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: dev@ant.apache.org
        ReportedBy: alko@nc.rr.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message