开发者

How to use Ant sources with Eclipse?

my question relates to the Ant libs and source included with various Eclipse distributions. e.g.

eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145 and eclipse/plugins/org.apache.ant.source_1.7.1.v20090120-1145.jar

How can I associate these together? What I'd like to do is set a breakpoint in the Ant Javac task, so I can confirm precisely which arguments are being passed to it. (This is proving very difficult to analyse from the build.xml itself due to a complicated structure with lot开发者_如何学Gos of imports and taskdefs).

I can see no way to associate them within Preferences/Ant, and when adding the jar to my Ant launcher's classpath it seems to just ignore my breakpoints in it, no matter even if I put it higher on the classpath than "Ant Home (Default)" itself.

I'm presumably missing something obvious, your answers are much appreciated.


You can configure your Run Configuration. Go to Run -> Run Configurations... -> Source tab, and press Add button. From here you can add it as external archive. If you have it configured as variable, you can also use this option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜