ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goodnough <agoo...@yahoo.com>
Subject RE: ftp task not working
Date Mon, 08 Jan 2001 22:19:23 GMT
Download NetComponents and make sure the classes are in
your classpath and it should work.

http://www.savarese.org/oro/downloads/download/NetComponents-1.3.8.zip


Andy


--- "Mahmoud, Khairy" <Khairy.Mahmoud@msdw.com> wrote:
> Hi Adrew:
> 
> 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@msdw.com
> Direct:  415.344-9089
> Fax   :  415.543-7142
> 
> -----Original Message-----
> From: Andrew Goodnough [mailto:agoodno@yahoo.com]
> Sent: Monday, January 08, 2001 12:01 PM
> To: ant-user@jakarta.apache.org; ewhelan@seagull.nl
> Subject: Re: Dir attribute of the execute task.
> 
> 
> The command attribute is deprecated so here's a solution
> using the executable attribute instead.
> 
>     <target name="test">
>         <exec executable="cmd">
>             <arg value="/Cdir C:\"/>
>         </exec>
>     </target>
> 
> Andy
> 
> 
> --- Eoin Whelan <ewhelan@seagull.nl> wrote:
> > Hi,
> > 	I execute this task :
> > 
> > 	<exec dir="C:\" command="dir"/>
> > 
> >             but it does not give me the directory
> listing
> > of C:\, it gives
> > me the listing of a different directory, namely the
> > directory I execute the
> > ant build command from.
> > 
> > 	Is this the way it should work or should it give me
> the
> > listing for C:\? If
> > this is the expected way, how can I get the listing of
> > C:\?
> > 
> > Eoin Whelan
> > Software Developer.
> > <mailto: ewhelan@seagull.nl>
> > 
> > SEAGULL IRELAND
> > Swords Plaza, Main street, Swords, Co. Dublin, Ireland
> > P.O.Box 6751, Swords.
> > Tel.   +353 1 8903090, Fax  +353 1 8903089
> > 
> > http://www.seagullsw.com/
> > 
> > 
> 
> 
> =====
> 
> Andrew Goodnough
> agoodno@yahoo.com
> 
> How do you know you've come far enough, until you've gone
> too far?
> 
> - Sheldon Kopp
> 
>  
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Mime
View raw message