How can I reference ANT HOME from libraries in project properties when using eclipse?

In our code base, we depend on the version of ant used in eclipse.

Ant.jar was created as a library in which the project uses

This is a pain when moving eclipse versions when changing the name of the ant plugin folder (although I can see that now it is simply called Ant1.7)

Is there a way to access the eclipses of the link to ant Home, which appears in the workspace settings, so I don’t have to explicitly set a variable that has a hard coded path to the ant plugins folder

+3
source share
5 answers

eclipse Ant, , eclipse. , intelliJ?

, , , lib - .

+1

:

  • ( / PDE/ ...)
  • 'ant'.

eclipse.

0

Ant , , ANT_HOME Ant build.xml?

0

, , .

"" " ...". , JDK, maven ( , tomcat, eetc...) ANT_HOME , , " "... . ANT_HOME .

, .

0

ant ${ant.home}

:

<echo> ${ant.home} </echo>

:

 [echo]  D:\java\eclipse_3.4_jee\plugins\org.apache.ant_1.7.0.v200803061910 

a >

0

Source: https://habr.com/ru/post/1699205/


All Articles