ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Fuller" <>
Subject RE: notes on embedding ANT
Date Fri, 13 Feb 2004 09:24:38 GMT
> From: Paul F. Williams [] 
> Sent: 13 February 2004 04:59
> To:
> 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.

gl, Jim Fuller

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message