Created
November 29, 2019 06:40
-
-
Save iamdylanngo/2461e8b0f8d9e514aa6e24a85569753a to your computer and use it in GitHub Desktop.
Install Ant in ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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