开发者

How can i use Apache ANT Programmatically

开发者 https://www.devze.com 2023-01-23 01:14 出处:网络
I\'m making a simple program that compile and make a jar file but i don\'t want to u开发者_运维技巧se a build.xml (and then invoke it with exec).

I'm making a simple program that compile and make a jar file but i don't want to u开发者_运维技巧se a build.xml (and then invoke it with exec).

but i want using ANT API(for example:org.apache.tools.ant.Task)

Any Help?


You might as well get the answer directly from the source: Using Ant Tasks Outside of Ant

You might also be interested in something like Leafcutter, which claims to provide:

An API which allows you to execute Ant tasks from Java code.

I haven't used it personally, just letting you know that it exists...

0

精彩评论

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