>  -----Original Message-----
> From:         Mahmoud, Khairy  
> Sent: Monday, January 08, 2001 11:15 AM
> To:   '[EMAIL PROTECTED]'
> Subject:      
> 
> 
> Hi:
> 
> How do I use the optional "ftp" task.
> 
> I downloaded "optional.jar" and included it in my CLASSPATH but still get
> this the following error:
> 
> Could not create task of type: ftp because I can't find it in the list of
> task class definitions.  Common solutions are: 1 execute bin/bootstrap. 2
> use taskdef to declare your task. 3 add the task to defaults.properties.
> 
> 
> If I include this line in "mybuild.xml":
>       <taskdef name="ftp"
> classname="org.apache.tools.ant.taskdefs.optional.FTP" />
> I get this exception:
>       java.lang.NoClassDefFoundError: com/oroinc/net/ftp/FTPClient
>         at org.apache.tools.ant.taskdefs.optional.FTP.execute(FTP.java)
>         at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
>         at org.apache.tools.ant.Project.runTarget(Project.java:818)
>         at org.apache.tools.ant.Project.executeTarget(Project.java,
> Compiled Code)
>         at org.apache.tools.ant.Project.executeTargets(Project.java,
> Compiled Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:149)
> 
> Appreciate you help ASAP.
> Thank you very much,
> 
> Khairy Mahmoud
>  Morgan Stanley Dean Witter               
>                                                      | onlinel
> [EMAIL PROTECTED]
> Direct:  415.344-9089
> Fax   :  415.543-7142
> 

Reply via email to