ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <sco...@javactivity.org>
Subject Re: FW: FTP Task Question
Date Tue, 17 Feb 2004 00:17:40 GMT
Are you importing commons-net.jar?  You must have this jar on your classpath.  
Note that NetComponents.jar (which commons-net replaces) will not work with 
ant >= 1.6

On Monday 16 February 2004 4:19 pm, Tonte Pouncil wrote:
> -----Original Message-----
> From: Rodney Fobbs
> Sent: Monday, February 16, 2004 9:43 AM
> To: Tonte Pouncil; 'Sullivan.Sean@menlolog.com'
> Subject: FW: FTP Task Question
>
>
> Sean,
>
> 1) Yes I had 1.5.4 and 1.6.0 on my system.  I have deleted 1.5.4.
>
> 2) My ANT_HOME is pointed to my 1.6.0 directory.
>
> 3) This what I get after checking 1 and 2 and using -v:
>
> Apache Ant version 1.6.0 compiled on December 18 2003
> Buildfile: build.xml
> Detected Java version: 1.4 in: P:\java\j2sdk1.4.2_03\jre
> Detected OS: Windows NT
> parsing buildfile P:\java_dev\appmon\build.xml with URI =
> file:///P:/java_dev/ap
> pmon/build.xml
> Project base dir set to: P:\java_dev\appmon
> Build sequence for target `ftpdeploy' is [common, ftpdeploy]
> Complete build sequence is [common, ftpdeploy, ]
>
> common:
>      [echo] BuildName: AppMonitor
>      [echo] BuildHome: P:\java_dev\appmon
>      [echo] BuildFile: P:\java_dev\appmon\build.xml
>      [echo] BuildJVM: 1.4
>
> ftpdeploy:
>
> BUILD FAILED
> P:\java_dev\appmon\build.xml:21: 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 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: 2 seconds
>
> Thanks for your help thus far,
>
> Rodney
>
>
>
> -----Original Message-----
> From: Sullivan, Sean C - MWT [mailto:Sullivan.Sean@menlolog.com]
> Sent: Friday, February 13, 2004 6:15 PM
> To: Ant Users List
> Subject: RE: FTP Task Question
>
>
>
> 1) Do you have multiple versions of Ant on your system?
>
> 2) check your ANT_HOME environment variable
>
> 3) try using Ant's  "-v"  (verbose) option
>
> -Sean
>
> > -----Original Message-----
> > From: Tonte Pouncil [mailto:tpouncil@vartec.net]
> > Sent: Friday, February 13, 2004 3:57 PM
> > To: 'Ant Users List'
> > Subject: RE: FTP Task Question
> >
> > Yes,  I have common-net.jar, jakarta-oro.jar, and and netcomponents.jar
> > in my ANT_HOME/lib and I still get the standard error message.  Is there
> > anything special I need to do to enable ant to read the new jar files.
> >
> > -----Original Message-----
> > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> > Sent: Friday, February 13, 2004 10:28 AM
> > To: user@ant.apache.org
> > Subject: RE: FTP Task Question
> >
> >
> > If you have a look in the manual ("Installing Ant | Library
> > Dependencies") you´ll see a couple of needed libs.
> >
> > Do you have them installed?
> >
> >
> > Jan
> >
> > > -----Original Message-----
> > > From: Tonte Pouncil [mailto:tpouncil@vartec.net]
> > > Sent: Friday, February 13, 2004 5:25 PM
> > > To: Ant Users List (E-mail)
> > > Cc: Rodney Fobbs
> > > Subject: FTP Task Question
> > >
> > >
> > > Greetings:
> > >
> > > How do I ftp in ant 1.6.0?  The ftp task is not being recognised.  Any
> > > suggestion would help?
> > >
> > > Thanks!
> > >
> > > Tonté Pouncil
> > > Network Systems Support
> > > Programmer II
> > > Phone: 972.478.3853
> > > Pager: 214.248.5438
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message