-----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.
[EMAIL PROTECTED]
- -----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 5:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Running several java task (it stops after the first
call) ?
Olivier Prouvost <[EMAIL PROTECTED]> 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-----
NoExitSecurityManager.java