ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (PS, GNF, Contractor)" <Luis.Cone...@gnf.com>
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.

Luis.

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}"
             skipfailedtransfers="yes">
            <fileset dir="${dist}/lib/${DSTAMP}" >
                <include name="**/${jar.name}"/>
            </fileset>
        </ftp>
------------------------------------
HTH

-----Original Message-----
From: Tonte Pouncil [mailto:tpouncil@vartec.net]
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 =
file:///D:/Prog
ram%20Files/projects/build.xml
Setting ro project property: ant.project.name -> AppMonitor
Adding reference: AppMonitor
Setting ro project property: ant.file.AppMonitor -> D:\Program
Files\projects\bu
ild.xml
Project base dir set to: D:\Program Files\projects
 +Target:
 +Target: common
 +Target: ftpdeploy
Build sequence for target `ftpdeploy' is [common, ftpdeploy]
Complete build sequence is [common, ftpdeploy, ]

common:
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

ftpdeploy:

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

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 apache.org
 - 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
classpath

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
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownEleme
nt.java:514)
        at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:42
2)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
a:189)
        at org.apache.tools.ant.Task.perform(Task.java:400)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

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


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