Skip to content

Instantly share code, notes, and snippets.

@iamdylanngo
Created November 29, 2019 06:40
Show Gist options
  • Save iamdylanngo/2461e8b0f8d9e514aa6e24a85569753a to your computer and use it in GitHub Desktop.
Save iamdylanngo/2461e8b0f8d9e514aa6e24a85569753a to your computer and use it in GitHub Desktop.
Install Ant in ubuntu
1, Make sure local workstation install JDK >= 1.8
2, Dowload Ant:
wget https://www-eu.apache.org/dist//ant/binaries/apache-ant-${VER}-bin.tar.gz
3, sudo tar -xvf apache-ant-${VER}-bin.tar.gz -C /usr/local
4,
sudo ln -s /usr/local/apache-ant-${VER}/ /usr/local/ant
sudo vim /etc/profile.d/ant.sh
export ANT_HOME=/usr/local/ant
export PATH=${PATH}:${ANT_HOME}/bin
source /etc/profile.d/ant.sh
5, Check ant
echo $ANT_HOME
echo $PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment