From agoodno@yahoo.com Mon Jan 8 22:19:19 2001 Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 55729 invoked from network); 8 Jan 2001 22:19:19 -0000 Received: from web10402.mail.yahoo.com (216.136.130.94) by h31.sny.collab.net with SMTP; 8 Jan 2001 22:19:19 -0000 Message-ID: <20010108221923.11923.qmail@web10402.mail.yahoo.com> Received: from [162.74.52.180] by web10402.mail.yahoo.com; Mon, 08 Jan 2001 14:19:23 PST Date: Mon, 8 Jan 2001 14:19:23 -0800 (PST) From: Andrew Goodnough Subject: RE: ftp task not working To: ant-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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" 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": > 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. > > > > > > > > Andy > > > --- Eoin Whelan wrote: > > Hi, > > I execute this task : > > > > > > > > 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. > > > > > > 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/