On Wed, Aug 21, 2002 at 03:18:14PM +0200, Tomasz Skutnik wrote:
...
> | I gave up trying to embed Ant and set a security manager to catch the
> | System.exit(). There's one in Ant,
> | /src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager, and
> | at [1].
> |
> 
> I've considered this solution, but decided it's not very elegant.
> However it'll probably go this way...

Oh well, if you embrace the dark side and go this route, then the whole
thing could be generalized to apps other than Ant, like Maven[1] which is
even slower :)

Talking of which, there's this nifty utility for constructing classloader
hierarchies and launching apps, which Maven uses:

http://forehead.werken.com/

It would automate the process of constructing a classloader from
${block.home}/${ant.home}/lib/*.jar and invoking the wrapper class in it.
As it's configured from a text file, it would make your app generic, not
limited to Ant.

> BTW. Would Avalon team be interested in including such app in
> jakarta-avalon-apps repository ?

Certainly, it sounds neat.

--Jeff

[1] http://jakarta.apache.org/turbine/maven/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to