3

I'm making a simple program that compile and make a jar file but i don't want to use a build.xml (and then invoke it with exec).

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

Any Help?

JoseK
  • 31,141
  • 14
  • 104
  • 131
BenMansourNizar
  • 1,558
  • 4
  • 21
  • 42

1 Answers1

3

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...

kschneid
  • 5,626
  • 23
  • 31