> From: Paul F. Williams [mailto:[EMAIL PROTECTED] > Sent: 13 February 2004 04:59 > To: [EMAIL PROTECTED] > Subject: notes on embedding ANT > I want to use ANT's task engine in my own app. I don't want > to invoke it from a command line. I don't want to run > individual tasks myself. I want to use the ANT engine > internally to process an XML script. Maybe there is an > established way to use ANT this way, but I found none.
You can programatically instruct Ant to process builds, of course this is in Java and you will then consider the implications of ensuring that Ant is on classpath etc... . > This script is in the META-INF directory of a JAR file. I > don't want to extract the file to a temporary file and feed > it to ANT. Instead, I would like to convert the script's > ZipEntry to an InputStream and pass the stream to ANT. As I can see from the rest of the post you have already made a start, if your are finding that your needs seem like a poor match with what Ant is offering, its probably because Ant is firstly a build tool, I find using Jelly a useful alternative to consider. http://jakarta.apache.org/commons/jelly/ gl, Jim Fuller --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]