Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 81489 invoked from network); 17 Feb 2004 14:52:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Feb 2004 14:52:20 -0000 Received: (qmail 93200 invoked by uid 500); 17 Feb 2004 14:52:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93169 invoked by uid 500); 17 Feb 2004 14:52:06 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 93138 invoked from network); 17 Feb 2004 14:52:06 -0000 Received: from unknown (HELO ext-nj2gw-3.online-age.net) (216.35.73.165) by daedalus.apache.org with SMTP; 17 Feb 2004 14:52:06 -0000 Received: from int-nj2gw-4.online-age.net (int-nj2gw-4 [3.159.236.68]) by ext-nj2gw-3.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id i1HEq5B0014489 for ; Tue, 17 Feb 2004 09:52:05 -0500 (EST) Received: from ncwlmx01nege.wilm.ge.com (localhost [127.0.0.1]) by int-nj2gw-4.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id i1HEq3Ug008522 for ; Tue, 17 Feb 2004 09:52:04 -0500 (EST) Received: by ncwlmx01nege.wilm.ge.com with Internet Mail Service (5.5.2653.19) id ; Tue, 17 Feb 2004 09:51:54 -0500 Message-ID: <42C9EFEA1737D511BA420008C78641510D0F435A@ncwlmx01nege.wilm.ge.com> From: "Conelly, Luis (PS, GNF, Contractor)" To: Ant Users List Subject: RE: FW: FTP Task Question Date: Tue, 17 Feb 2004 09:51:53 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3F565.94980A80" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3F565.94980A80 Content-Type: text/plain; charset="iso-8859-1" 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 or . After reinstalling ant (as default), all started to work fine. Luis. BTW, the task must be typed in lowercase (I say this because of your output, which shows FTP instead 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 . 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> ------_=_NextPart_001_01C3F565.94980A80--