Order a VPS, Semi- dedicated or Dedicated server in Dallas, London or Australia.
Ask our support team about your hosting requirements.
Host where the staff takes pride in making customers happy
I think I have commented on this before but I am extremely impressed with efficient and timely responses by you guys also your knowledge base howtos are very helpful.
- Lee (providing more feedback after a simple password change for them) (#86/309)
Apache Ant
Ant is very a popular 'make' tool. That is commonly used on Java projects. e.g. to compile java files, create jar files and deploy webapps to application servers.
Cut and Paste Ant Install Script
function installant() {
# get the latest version number
antarchive=$(wget -O - -q http://www.apache.org/dist/ant/binaries/ | grep 'tar.bz2<' | sed 's/^.*<a .*>\(.*\)<\/a>.*$/\1/')
if [ -z "$antarchive" ]; then
antarchive="apache-ant-1.7.1-bin.tar.bz2"
fi
pushd /usr/local
wget -O - "http://www.apache.org/dist/ant/binaries/$antarchive" |
tar xj
if [ $? -ne 0 ]; then
echo "Failed getting ant binary from 'http://www.apache.org/dist/ant/binaries/$antarchive'" >&2
return 1
fi
if [ -e /usr/local/apache-ant ]; then
mv /usr/local/apache-ant /usr/local/old.apache-ant
fi
mv /usr/local/`basename $antarchive -bin.tar.bz2` /usr/local/apache-ant
popd
mkdir -p /etc/profile.d/
echo 'export ANT_HOME=/usr/local/apache-ant
export PATH=$PATH:/usr/local/apache-ant/bin' > /etc/profile.d/ant.sh
chmod +x /etc/profile.d/ant.sh
/usr/local/apache-ant/bin/ant -version
}
installant

