Reputation: 1137
Is it possible to create ant build file from java code using ant API?
Upvotes: 3
Views: 732
Reputation: 7141
If you do not need to stick to Java, the easiest way is to use groovy and groovy ant buillder (see here). Groovy is compiled into Java VM code and can be easily integrated into a Java program.
Upvotes: 3
Reputation: 19050
No ANT api doesn't provide such feature. You'll have to use one of the following solution to "manually" write your build.xml file:
Upvotes: 3