I am trying to output the classpath string of dependencies for an ant project. For the Maven project, once achieves this using build-classpath. Anything similar in ANt?
Asked
Active
Viewed 83 times
1
-
2ANT doesn't have built-in support for classpath management, like Maven. There is an ANT plugin called ivy, which has a "report" task which will print the dependencies associated with each ivy configuration, a concept similar to Maven scopes. See: http://stackoverflow.com/questions/11417304/ivy-what-is-the-master-configuration-and-why-is-it-not-pulling-jvyaml/11420292#11420292 – Mark O'Connor Nov 08 '15 at 17:32
-
Is it possible to invoke the report task programmatically through java? – tr_quest Nov 08 '15 at 17:42
-
2Pretty certain it's possible, I don't have examples. I generally use groovy to interact with ANT. See: http://stackoverflow.com/questions/11189817/programmatically-retrieve-maven-dependency-graph/11197633#11197633 – Mark O'Connor Nov 08 '15 at 18:33