> -----Original Message-----
> From: Scott Ellsworth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 10:57 PM
> To: Ant List
> Subject: Hi, all. How do I protect myself from System.exit?
> 
> 
> Hi, all.
> 
> I have a task that I have written that calls the main method 
> of a java 
> class after doing some parameter munging.  This main method does a 
> System.exit.  I cannot easily rewrite that part of the code, 
> so I need 
> to work around it.

You can use modify the Java security policy so that the class
that calls System.exit doesn't have permission to execute
System.exit.


Daniel

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

Reply via email to