ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james" <ja...@unikala.com>
Subject RE: Running several java task (it stops after the first call) ?
Date Wed, 18 Apr 2001 12:36:31 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is a security manager that will trap System.exit(). It is based
on the one implemented in the CruiseControl project. i use it an a
wrapper around Ant, but it should be possible to include it in the
"target" of your javac target if you have the source. Note that once
it's loaded, it STAYS loaded (this is a JVM feature apparently) &
theoretically, even Ant won't be able to exit() w/out some additional
effort. 



james@unikala.com


- -----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Wednesday, April 18, 2001 5:02 AM
To: ant-user@jakarta.apache.org
Subject: Re: Running several java task (it stops after the first
call) ?


Olivier Prouvost <olivier.prouvost@anyware-tech.com> wrote:

> Forking is expensive : it loads a new VM while ant has its own. Is
> it possible to call several java task, without forking ?

In general?  Yes.  

In your case I suspect the java application in question calls
System.exit somewhere and therefore terminates Ant - apart from
fixing
the application there is not much you can do ATM.  Using a custom
SecurityManager to catch these problems has been discussed, but not
implemented.

Stefan

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBOt2KTwXY7J7Vn/AcEQLrhwCg349i8Y3tmx1JAPZE2umAzp4pj+IAoL5f
CUZbHl3FOgRIFXu9G8sBs2Jv
=Ogty
-----END PGP SIGNATURE-----

Mime
View raw message