FileDocCategorySizeDatePackage
NoExitSecurityManager.javaAPI DocApache Ant 1.701720Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.util.optional

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
ExitException

Fields Summary
Constructors Summary
Methods Summary
public voidcheckExit(int status)
Override SecurityManager#checkExit. This throws an ExitException(status) exception.

param
status the exit status

        throw new ExitException(status);
    
public voidcheckPermission(java.security.Permission perm)
Override SecurityManager#checkPermission. This does nothing.

param
perm the requested permission.

        // no permission here