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 28797] New: - ArrayIndexOutOfBoundsException while using <ftp action="list">
Date Thu, 06 May 2004 07:53:28 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=28797>.
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=28797

ArrayIndexOutOfBoundsException while using <ftp action="list">

           Summary: ArrayIndexOutOfBoundsException while using <ftp
                    action="list">
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: sascha.spiekermann@gmx.net


Hello,
I use the following code in my build.xml (commons-net-1.2 installed):

<ftp server="${server}" userid="user" password="123456"
	remotedir="${sdcard.pda}" verbose="true"
	action="list" listing="c:/ftp_${server}.txt">
	<fileset>
		<include name="**"/>
	</fileset>
</ftp>
and get following error:

      [ftp] listing files
      [ftp] listing 2577\Autocab.exe

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.taskdefs.Sequential.execute(Sequential.java:65)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at net.sf.antcontrib.logic.TryCatchTask.execute(Unknown Source)
        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 5 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.taskdefs.Sequential.execute(Sequential.java:65)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at net.sf.antcontrib.logic.TryCatchTask.execute(Unknown Source)
        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)
0


Using <fileset><include name="*"/></fileset> works.

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


Mime
View raw message