commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29650] - FTP with Ant
Date Fri, 18 Jun 2004 14:53:05 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=29650>.
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=29650

FTP with Ant





------- Additional Comments From mr_furious1@hotmail.com  2004-06-18 14:53 -------
I grabbed the build dated commons-net-20040617.zip, Ant FTP tasks get and list
seemed to work. However, when targeting a large amount of files for the FTP list
task the following error was encountered.

Ant script:
 		<ftp
 			action="list" 
 			server="${ftp.host}" 
 			userid="${ftp.login}" 
 			password="${ftp.password}" 
 			verbose="yes"
 			listing="xsl/listing.txt"
 		>
 		
 			<fileset>
 				<include name="**/*"/>

 			</fileset>
 		
    	</ftp>

output:

BUILD FAILED
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.tools.ant.taskdefs.optional.net.FTP.listFile(FTP.java:1856
)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1345)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1388)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2016)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

Total time: 1 minute 16 seconds
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.tools.ant.taskdefs.optional.net.FTP.listFile(FTP.java:1856
)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1345)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1388)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2016)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

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


Mime
View raw message