ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artemis Ozten" <aoz...@webalg.com>
Subject RE: Ant's FTP task & library dependencies
Date Tue, 11 May 2004 20:53:32 GMT
Two suggestions:

Either keep the iftp jar in the system's class path by putting it back
to where it was before or better yet, upgrade your ANT to 1.6.1 or
higher. Upgrading sounds like a hassle but it is simple and more
importantly it is worth it since 1.5.1 is fairly old version. Also the
jar's you downloaded are a lot newer than the version of ANT you are
using.

Good luck.

-----Original Message-----
From: Mahdad Zarafshan [mailto:mahdadz@yahoo.com] 
Sent: Tuesday, May 11, 2004 1:09 PM
To: Ant Users List
Subject: RE: Ant's FTP task & library dependencies

Hi Artemis,

Thanks.

My Ant is 1.5.1.
I removed those two old jars (iftp and netcomponent)
from system's classpath and added
jakarta-oro-2.0.8.jar and commons-net-1.2.1.jar and I
kept the same <taskdef>'s (per your suggestion) that
used to work before (with iftp).
Now I get this:

------------------------------------
Buildfile: install.xml

BUILD FAILED
file:D:/garbage/install.xml:18: taskdef class
net.ipov.ant.ftp.iFtp cannot be found

Total time: 0 seconds
------------------------------------

So I believe I should remove those old <taskdef>'s
that used to work with iftp.

Any suggestions? If I need <taskdef>'s, does any one
have any sample <taskdef>'s that's working with ORO
and commons-net?

Is my Ant version causing this? What if I cannot
upgrade to 1.6.x now?

Thanks.

Mahdad

--- Artemis Ozten <aozten@webalg.com> wrote:
>  
>  
> 2) The two above jars are not officially listed as
> library dependencies for FTP task ->
> http://ant.apache.org/manual/OptionalTasks/ftp.html.
> So, what should I do? Scrap the above two jars and
> stick with the official libraries such as jakarta's
> ORO etc.? 
>  
> Yes. In order to make ftp and telnet tasks work,
> download
> commons-net.-1.2.0 and jakarta-oro-2.0.8 and copy
> commons-net.-1.2.0.jar
> and jakarta-oro-2.0.8.jar to ANT_HOME/lib folder.
> These binaries are
> found at
> http://jakarta.apache.org/site/binindex.cgi.
>  
> Remove the older ones from ANT_HOME/lib. If
> necessary upgrade your ant
> to 1.6.1 or higher. This is the version I got
> working with the libraries
> mentioned above.
>  
> 4) Actually, I removed the two above jars from
> classpath and started experimenting with
> commons-net-1.2.1.jar & FTP.class, but getting
> errors
> running it. Any sample Ant code to show how to make
> <ftp> work? Any <taskdef> needed?
>  
>  
> Keep using the <taskdef> you have been using.
>  
>  
>  
>  
>       
>             
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs  
> http://hotjobs.sweepstakes.yahoo.com/careermakeover 
>  
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>  
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
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