install ant ftp task on ubuntu

Tired of manually uploading your changes via FTP?
And no shell because your client cant/wont buy a hosting package for real men?

Then go for ant and its ftp task!

Install it on ubuntu like so (given you have ant and java already):

cd ~
tar -zxvf commons-net-1.4.1.tar.gz
sudo cp commons-net-1.4.1/commons-net-1.4.1.jar /usr/share/ant/lib
rm -rf commons-net-1.4.1
rm -rf commons-net-1.4.1.tar.gz

tar -zxvf jakarta-oro-current.tar.gz
sudo cp jakarta-oro-2.0.8/jakarta-oro-2.0.8.jar /usr/share/ant/lib
rm -rf jakarta-oro-2.0.8
rm -rf jakarta-oro-current.tar.gz

Now make your self an build.xml file in your projects root and do:

cd myproject


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.