ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hewitt <MHew...@Armature.com>
Subject ftp task throwing ArrayIndexOutOfBoundsException
Date Fri, 30 Mar 2001 15:23:36 GMT
FTP optional task gurus:

I have a target like this:

    <target name="publish" depends="init" >
	<ftp server="lemmy.armature.com"
             remotedir="/tmp"
             userid="XXX"
             password="YYY"
             depends="yes" >
             <fileset dir="${buildbase}" >
	         <include name="*.jar" />
	     </fileset>
	 </ftp>
    </target>

Which results in:

markh@venus$ ant -verbose publish
Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Detected Java Version: 1.2
Detected OS: SunOS
parsing buildfile /tag/buildman/buildtree/dca/java/build.xml with URI =
file:/tag/buildman/buildtree/dca/java/build.xml
Project base dir set to: /tag/buildman/buildtree/dca/java
resolving systemId: file:/tag/buildman/buildtree/dca/java/targets.xml
resolving systemId: file:/tag/buildman/buildtree/dca/java/common.xml
resolving systemId: file:/tag/buildman/buildtree/dca/java/project.xml
Build sequence for target `publish' is [inclusion, init, publish]
Complete build sequence is [inclusion, init, publish, prepare, depend,
compile, compile.debug, lint, fulldoc, publicdoc, doc, jar, world,
world.debug, clean, realclean]

inclusion:

init:

publish:
      [ftp] Opening FTP connection to lemmy.armature.com
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] sending files
      [ftp] checking date for dca.jar
      [ftp] checking date for bods.jar

BUILD FAILED

java.lang.ArrayIndexOutOfBoundsException: 0
        at
org.apache.tools.ant.taskdefs.optional.net.FTP.isUpToDate(FTP.java:552)
        at
org.apache.tools.ant.taskdefs.optional.net.FTP.sendFile(FTP.java:579)
        at
org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(Compiled Code)
        at
org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(Compiled Code)
        at
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:789)
        at org.apache.tools.ant.Target.execute(Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 3 seconds
0

Any idea what is broken here?

#!/mjh

Mime
View raw message