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 ~
wget http://apache.openmirror.de//commons/net/binaries/commons-net-1.4.1.tar.gz
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
wget http://archive.apache.org/dist/jakarta/oro/jakarta-oro-current.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

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

cd myproject
ant

Wahnsinn!

Leave a Reply

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