Reputation: 910
I'm trying to work on an old Java 6 project but IntelliJ says that I'm using a bundled Ant (1.10.5) which isn't compatible with Java 6 so I can't compile the project using Ant. Is there a way to find where the bundled ant jar file is located within the project?
Upvotes: 3
Views: 2928
Reputation: 402235
You should not change the bundled Ant version, instead you can supply your own Ant installation path in IntelliJ IDEA build file properties dialog.
Bundled Ant can be found in IDE_HOME/lib/ant
directory (/Applications/IntelliJ IDEA.app/Contents/lib/ant
on macOS).
Upvotes: 1
Reputation: 779
In IntelliJ 2019.2 go to Ant Tool Window > Build File Properties > Execution > Use Custom Ant to specify the Ant version downloaded
Upvotes: 5
Reputation: 910
I found that the bundled Ant is located in /Applications/IntelliJ IDEA.app/Contents/lib/ant
.
You can also add other versions of ant to the lib
directory after downloading them. They should be identified by IntelliJ for other projects after adding it in the Ant Build Properties if you wish to change the Ant version.
For example, adding Ant 1.9.4: /Applications/IntelliJ IDEA.app/Contents/lib/ant_1.9.4
.
Upvotes: 1