----- Original Message -----
From: "Atluri, Vamsi NYC" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 06:07
Subject: Could someone help me out ?


> I have been having problems with the ANT ftp task and telnet tasks
>
> when i do the following:
>
> <ftp server="myserver"
> port="2121"
>
> remotedir="/export/home/vatluri/application/citco/cas/webapps/cas"
> userid="name"
> password="name"
> binary="yes"
> >
> <fileset dir="${buildCas}">
> <include name="**/xml.tar"/>
> </fileset>
>                 </ftp>
>
> i recieve the following:
>
> BUILD FAILED
> C:\webadmin.xml:140: Could not create task or type of type: ftp.
> Ant could not find the task or a class this
> task relies upon.
> Common solutions are to use taskdef to declare
> your task, or, if this is an optional task,
> to put the optional.jar and all required libraries of
> this task in the lib directory of
> your ant installation (ANT_HOME).
> There is also the possibility that your build file
> is written to work with a more recent version of ant
> than the one you are using, in which case you have to
> upgrade.

Clearly this error message is not transparent enough for new users. I am
debating changing it to


This is NOT a bug in ant, merely a minor issue in Ant and build file
configuration.

What can you do:

1. do NOT panic, mail all the mailing lists and generally escalate the
problem out of proportion.

2. If this is a core Ant task, then maybe a dependent library is needed.
Look at the manual page of the task to see what it recommends.

3, if this is an optional Ant task, you need the optional tasks jar file,
and perhaps some extra libraries. Again, look at the manual page

4. If this is a third party task, you must import it using a <taskdef>
statement, have the task JAR and any dependent JAR files either in the ant
library directory or in the classpath specified in the <taskdef> statemens.

5. If you compiled ant yourself, you didnt have all the needed libraries in
place for the tasks you are now trying to use

6. If this is a nightly build, be advised that condition (5) applies to the
version you just downloaded.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to