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 31541] New: - Unable to delete files with the ftp task
Date Tue, 05 Oct 2004 13:09:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31541>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31541

Unable to delete files with the ftp task

           Summary: Unable to delete files with the ftp task
           Product: Ant
           Version: 1.6.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: no.spam.lkral@web.de


Ant seems to have problems deleting files with a timestamp between 00:00:00 and 
00:59:59. Please have a look at the following example:

[C:\Inetpub]touch /t00:59:59 \Inetpub\ftproot\transfer\test.bin
 5.10.2004 00:59:59  C:\Inetpub\ftproot\transfer\test.bin

[C:\Inetpub]ant test
Buildfile: build.xml

test:
      [ftp] deleting files
      [ftp] 0 files deleted

BUILD SUCCESSFUL
Total time: 1 second

[C:\Inetpub]touch /t01:00:00 \Inetpub\ftproot\transfer\test.bin
 5.10.2004 01:00:00  C:\Inetpub\ftproot\transfer\test.bin

[C:\Inetpub]ant test
Buildfile: build.xml

test:
      [ftp] deleting files
      [ftp] 1 files deleted

BUILD SUCCESSFUL
Total time: 1 second


And under some conditions (which I can't reproduce) Ant throws a NPE:

[C:\Inetpub]ant -debug test
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Progra~1\Java\jdk1.5.0\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.2 compiled 
on July 16 2004
Setting ro project property: ant.file -> C:\Inetpub\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Inetpub\build.xml with URI = file:///C:/Inetpub/build.xml
Setting ro project property: ant.project.name -> FTP test
Adding reference: FTP test
Setting ro project property: ant.file.FTP test -> C:\Inetpub\build.xml
Project base dir set to: C:\Inetpub
 +Target:
 +Target: test
Build sequence for target `test' is [test]
Complete build sequence is [test, ]

test:
      [ftp] Opening FTP connection to localhost
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] deleting files
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) 
for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for 
type cvsversion
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/Test) for type junit
fileset: Setup scanner in dir C:\Inetpub with patternSet{ includes: [test.bin] 
excludes: [] }
      [ftp] disconnecting

BUILD FAILED
C:\Inetpub\build.xml:4: java.lang.NullPointerException
        at org.apache.tools.ant.Task.perform(Task.java:373)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NullPointerException
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.checkRemoteSe
nsitivity(FTP.java:527)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.listFiles
(FTP.java:507)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.listFiles
(FTP.java:518)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner$AntFTPFile.<i
nit>(FTP.java:657)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.checkIncludeP
atterns(FTP.java:242)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.scan
(FTP.java:197)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:1287)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:1382)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2010)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 8 more
--- Nested Exception ---
java.lang.NullPointerException
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.checkRemoteSe
nsitivity(FTP.java:527)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.listFiles
(FTP.java:507)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.listFiles
(FTP.java:518)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner$AntFTPFile.<i
nit>(FTP.java:657)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.checkIncludeP
atterns(FTP.java:242)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.scan
(FTP.java:197)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:1287)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:1382)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2010)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Total time: 1 second



Regards,
Lars

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message