Active2 years, 9 months ago
Mar 18, 2017 Install Apache ANT - ANT is a Java library & command-line tool that help building software. How to Download and Install Apache ANT Software Testing Material. Last Updated on March 18, 2017 by Rajkumar Leave a Comment. Step By Step Process – Install Apache Ant: Install Apache Ant – Apache ANT is a Java library and command-line tool. Last modified: Sat Aug 25 22:42:20 UTC 2018: Last modified by: tim.lebedk. Created: Mon Feb 02 22:17:48 UTC 2015: Created by: tim.lebedk. Automated tests.
I've downloaded the last apache ant version on my Mac but the version seems the old one.Any idea?
here the relative export variables.
here one more command what the core tasks mean?
myMac:~ mauri$ ant -diagnostics
I've tried to uninstall and install ANT again from brew, but the problem is still the same
Mauri
MauriMauri
2 Answers
I realized after relooking at the post, that you tried to install ant, it has downloaded
ant 1.9.7
version and extraction seemed to be /usr/local/Cellar/ant/1.9.7
.Or you may use the downloaded directory which is
/Users/mauri/Downloads/apache-ant-1.9.6
So, all you need to do is to set the environment variables to the right installation path.
Run the following commands on the terminal.
Now
ant -v
should give right result.Note that the above changes are only for the command session. If you want to apply it permanently, then update the same in your
~/.bash_profile
file.UPDATE:
If the is continue to persist(i.e., referring to older version of ant), it is possible to have softlink to older version. Try to remove that.
RaoRaoIf the is continue to persist(i.e., referring to older version of ant), it is possible to have softlink to older version. Try to remove that.
16.5k99 gold badges3939 silver badges5757 bronze badges
I'm still trying to the reason behind that, but The Ant wrapper script sources some files from /etc if present, so the global installation may leak into your setup regardless. I guess the key is
file:/Library/Java/Extensions/selenium-html-runner-3.0.1.jar' - whatever hasput Selenium there, it takes precedence.I want to thank Stefan Bodewig from Apache ANT for this great insight
MauriMauri
Not the answer you're looking for? Browse other questions tagged apacheant or ask your own question.
From Apache Software Foundation: Apache Ant is a software tool for automating software build processes. It is similar to Make but is implemented using the Java language, requires the Java platform, and is best suited to building Java projects. Why another build tool when there is already make, gnumake, nmake, jam, and others? Because all those tools have limitations that Ant's original author couldn't live with when developing software across multiple platforms. Make-like tools are inherently shell-based: they evaluate a set of dependencies, then execute commands not unlike what you would issue on a shell. This means that you can easily extend these tools by using or writing any program for the OS that you are working on; however, this also means that you limit yourself to the OS, or at least the OS type, such as Unix, that you are working on.
Apache Ant 1.8.2 Download Full
What do you need to know about free software?
From Apache Software Foundation:Ant Latest Version
Apache Ant is a software tool for automating software build processes. It is similar to Make but is implemented using the Java language, requires the Java platform, and is best suited to building Java projects. Why another build tool when there is already make, gnumake, nmake, jam, and others? Because all those tools have limitations that Ant's original author couldn't live with when developing software across multiple platforms. Make-like tools are inherently shell-based: they evaluate a set of dependencies, then execute commands not unlike what you would issue on a shell. This means that you can easily extend these tools by using or writing any program for the OS that you are working on; however, this also means that you limit yourself to the OS, or at least the OS type, such as Unix, that you are working on.