Friday, March 11, 2005

Eclipse Ant & FTP (networking)

Eclipse 3.0.1 already has ant-1.6.2 built in. It also has a bunch of optional extension to ant inparticular the ant-commons-net.jar and ant-apache-oro. This is not enough to get FTP working from ant within ant.

To get ftp (and probably other networking stuff going in ant) you need to get commons-net from the Apache Jakarta site (link). Also need jakarta-oro which from here.

Download and extract it into a location of your choosing then in eclipse

OR

Use jpackage/yum install it with
yum install jakarta-commons-net
yum install oro
Jar location will be
/usr/share/java/jakarta-commons-net.jar
/usr/share/java/oro.jar

Window -> Preferences -> Ant -> Runtime ->
Under Ant Home entries hit Add External JARs, this adds it to the ant_home/lib. Point that to the locations of the commons-net and oro jars,

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?