ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: FTP Task doesn't work with ANT with all JARs included
Date Thu, 27 Sep 2007 05:07:51 GMT
As in every software project ... could you update to a newer version?
Ant 1.6.2 is very old (3years), 1.7.0 is the latest (Dez.2006).
The required libraries listed in the online manual are for the last released version, which
is here 1.7.0.

If you cant update, have a look at that section in your offline manual. Choose the exact version
of the libraries. There were problems with incompatible versions...

But btw - nice post. Contains a lot of needed information ;)


>-----Urspr√ľngliche Nachricht-----
>Von: Z [] 
>Gesendet: Donnerstag, 27. September 2007 03:33
>Betreff: FTP Task doesn't work with ANT with all JARs included
>Platform - windows XP
>Env Variables - 
>name - ANT_HOME          Value - C:\apache-ant-1.6.2 
>name - JAVA_HOME        Value - C:\Program Files\Java\jdk1.5.0_12 
>name - PATH                   Value -  C:\Program
>I've downloaded and dropped the following jar files and copied them 
>into C:\apache-ant-1.6.2\lib folder. 
>I didn't do any command line compilation. I read elsewhere that I 
>don't have to do that. 
>I've followed all internet instructions to solve this problem, yet it 
>still doesn't work. 
>What do I do wrong ? I need step by step at this point from the gurus 
>here as I don't have much time 
>to debug. 
>Any help is appreciated. 
>$ ant -debug
>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:\Program Files\Java\jdk1.5.0_12\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:\Documents and
>Adding reference: ant.projectHelper
>Adding reference: ant.parsing.context
>Adding reference: ant.targets
>parsing buildfile C:\Documents and 
>Settings\ABC\Desktop\imdm5\build.xml with
>URI =
>Setting ro project property: -> Example Application
>Adding reference: Example Application Build
>Setting ro project property: ant.file.Example Application Build ->
>Project base dir set to: C:\Documents and
> +Target:
> +Target: testftp
>Build sequence for target `testftp' is [testftp]
>Complete build sequence is [testftp, ]
>Setting project property: linpac1 ->
>Setting project property: linpac2 ->
>Setting project property: ap1 -> sunmdm6
>Setting project property: ap2 -> sunmdm10
>Setting project property: db1 -> linpac4
>Setting project property: username -> su-mdm
>Setting project property: password -> find .
>Setting project property: username_db -> su-rds
>Setting project property: password_db -> doongo411
>Setting project property: oracle_username -> oracle
>Setting project property: oracle_password -> innopath
>Could not load a dependent class (org/apache/tools/ant/util/Retryable)
>for type
>C:\Documents and Settings\ABC\Desktop\imdm5\build.xml:20: 
>Could not create
>task or type of type: ftp.
>Ant could not find the task or a class this task relies upon.
>This is common and has a number of causes; the usual
>solutions are to read the manual pages then download and
>install needed JAR files, or fix the build file:
> - You have misspelt 'ftp'.
>   Fix: check your spelling.
> - The task needs an external JAR file to execute
>     and this is not found at the right place in the classpath.
>   Fix: check the documentation for dependencies.
>   Fix: declare the task.
> - The task is an Ant optional task and the JAR file and/or libraries
>     implementing the functionality were not found at the time you
>     yourself built your installation of Ant from the Ant sources.
>   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR 
>corresponding to the
>     task and make sure it contains more than merely a
>     If all it contains is the manifest, then rebuild Ant with the
>     libraries present in ${ant.home}/lib/optional/ , or alternatively,
>     download a pre-built release version from
> - The build file was written for a later version of Ant
>   Fix: upgrade to at least the latest release version of Ant
> - The task is not an Ant core or optional task
>     and needs to be declared using <taskdef>.
> - You are attempting to use a task defined using
>    <presetdef> or <macrodef> but have spelt wrong or not
>   defined it at the point of use
>Remember that for JAR files to be visible to Ant tasks implemented
>in ANT_HOME/lib, the files must be in the same directory or on the
>Please neither file bug reports on this problem, nor email the
>Ant mailing lists, until all of these causes have been explored,
>as this is not an Ant bug.
>        at
>        at
>        at
>        at
>        at
>        at
>        at 
>        at
>        at
>        at
>        at
>        at
>Total time: 0 seconds
>Build.xml file
><project name="Example Application Build" default="testftp" 
>	<!-- Compile the stand-alone application -->
>	<target name="testftp">
>		<property name="linpac1" value=""/>
>		<property name="linpac2" value=""/>
>		<property name="ap1" value="sunmdm6" />
>		<property name="ap2" value="sunmdm10" />
>		<property name="db1" value="linpac4" />
>		<property name="username" value="su-mdm"/>
>		<property name="password" value="xxx"/>
>		<property name="username_db" value="su-rds"/>
>		<property name="password_db" value="xxx"/>
>		<property name="oracle_username" value="oracle"/>
>		<property name="oracle_password" value="xxx"/>
>		<ftp action="get"
>			server="sunmdm6"
>			remotedir="."
>			userid="${username}"
>			password="${password}"
>			skipFailedTransfers="true">
>			<fileset dir=".">
>				<include name="*.txt"/>
>			</fileset>
>		</ftp>
>		<echo message="ftp done"/>
>	</target>
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message