ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (PS, GNF, Contractor)" <>
Subject RE: FW: FTP Task Question
Date Tue, 17 Feb 2004 14:51:53 GMT
	Have you ever being working around the ant sources and then recreating the ant jars? I did
this once (when I was a newbie in ant) and I screwed all up. Ant did not recognize several
tasks such as <mail> or <ftp>. After reinstalling ant (as default), all started
to work fine.


BTW, the <ftp> task must be typed in lowercase (I say this because of your output, which
shows FTP instead ftp)

        <ftp server="${ftp.server}"
             userid="${ftp.user}" password="${ftp.pwd}" newer="yes" passive="yes"
             verbose="yes" remotedir="${ftp.QABridge.home}/${DSTAMP}"
            <fileset dir="${dist}/lib/${DSTAMP}" >
                <include name="**/${}"/>

-----Original Message-----
From: Tonte Pouncil []
Sent: Tuesday, February 17, 2004 8:45 AM
To: 'Ant Users List'
Subject: RE: FW: FTP Task Question

I am using jakarta-oro-2.0.8.jar and commons-net-1.1.0.jar. My ant is
running on Windows 2000.  I am ftping to a unix box.  I hope this makes
senses.  Do I have the latest releases of the commons-net and jakarta-oro?
The jakarta-oro-2.0.8.jar and commons-net-1.1.0.jar was the only available
ones on the Ant site.  

This is what I get after running with the -debug command:

D:\Program Files\projects>ant -debug ftpdeploy
Apache Ant version 1.6.0 compiled on December 18 2003
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: D:\j2sdk1.4.0_03\jre
Detected OS: Windows 2000
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.0
compiled on
 December 18 2003
Setting ro project property: ant.file -> D:\Program Files\projects\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile D:\Program Files\projects\build.xml with URI =
Setting ro project property: -> AppMonitor
Adding reference: AppMonitor
Setting ro project property: ant.file.AppMonitor -> D:\Program
Project base dir set to: D:\Program Files\projects
 +Target: common
 +Target: ftpdeploy
Build sequence for target `ftpdeploy' is [common, ftpdeploy]
Complete build sequence is [common, ftpdeploy, ]

Setting project property: DSTAMP -> 20040217
Setting project property: TSTAMP -> 0840
Setting project property: TODAY -> February 17 2004
     [echo] BuildName: AppMonitor
     [echo] BuildHome: D:\Program Files\projects
     [echo] BuildFile: D:\Program Files\projects\build.xml
     [echo] BuildJVM: 1.4


D:\Program Files\projects\build.xml:21: Could not create task or type of
type: F

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 optional.jar is absent
   Fix: look for optional.jar in ANT_HOME/lib, download if needed
 - The task was not built into optional.jar as dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with the needed
   libraries, or download a 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>.

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.

Total time: 3 seconds
D:\Program Files\projects>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message