opkstyles.blogg.se

How to install apache ant on mac
How to install apache ant on mac







how to install apache ant on mac

# Add the new version of Ant to future terminal sessionsĮcho 'export PATH=/usr/local/apache-ant/bin:"$PATH"' > ~/.

how to install apache ant on mac

# Add the new version of Ant to current terminal sessionĮxport PATH=/usr/local/apache-ant/bin:"$PATH" Sudo cp -rf apache-ant-1.8.1-bin /usr/local/apache-ant # Copy it into /usr/local

how to install apache ant on mac

Sudo mkdir -p /usr/local # Ensure that /usr/local exists Tar -xvzf apache-ant-1.8. # Extract the folder The commands that you would need, assuming apache-ant-1.8. (replace 1.8.1 with the actual version) were still in your Downloads directory, would be the following (explanatory comments included): cd ~/Downloads # Let's get into your downloads folder. environment variable in bashprofile.Type below command in terminal and add ANTHOME in. Put the "bin" subdirectory in your path. To build your project by using ant, Set the command ant as.If it is not already installed, then your best bet is to install Homebrew ( brew install ant) or MacPorts ( sudo port install apache-ant), and use those tools to install Apache Ant.Īlternatively, though I would highly advise using Homebrew or MacPorts instead, you can install Apache Ant manually. It is good practice to verify the integrity of the .Ant is already installed on some older versions of Mac OS X, so you should run ant -version to test if it is installed before attempting to install it. Ant is already installed on some older versions of Mac OS X, so you should run ant -version to test if it is installed before attempting to install it. Use the links below to download a source distribution of Ant from one of our mirrors. Set environmental variables: JAVA_HOME to your Java . Uncompress the downloaded file into a directory. ,2015年1月9日 - Copy the downloaded gz file to your favorite location, extracts it. I moved the file to /usr/local/ using this commands : . ,2014年1月8日 - I downloaded apache-ant-1.8. into my Downloads folder. ,跳到 Download Apache Ant For Mac - Download Ant For Mac. Use the links below to download a binary distribution of . ,Apache Ant is a Java library and command-line tool that help building software. Apache AntUnit 1.4 is now available for download as binary or source release. Apache Ant is a Java library and command-line tool whose mission is to drive.









How to install apache ant on mac