org.apache.tools.ant.util.optional
Class NoExitSecurityManager
public
class
NoExitSecurityManager
extends SecurityManager
This is intended as a replacement for the default system manager.
The goal is to intercept System.exit calls and make it throw an
exception instead so that a System.exit in a task does not
fully terminate Ant.
See Also: ExitException
public void checkExit(int status)
Override SecurityManager#checkExit.
This throws an ExitException(status) exception.
Parameters: status the exit status
public void checkPermission(Permission perm)
Override SecurityManager#checkPermission.
This does nothing.
Parameters: perm the requested permission.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.