Java – is it possible to create ant build files programmatically?

Can ant build files be created from Java code using the ant API?

Solution

No ant API does not provide such functions You must write build "manually" using one of the following solutions XML file:

>Serialize to file output stream > DOM Xerces serialize to file output stream > Sax Xerces serialize to file output stream

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>