Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277418 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
590c1c914b
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java

+ 11
- 1
src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,10 +29,20 @@ import org.apache.tools.ant.ExitException;
*/
public class NoExitSecurityManager extends SecurityManager {

/**
* Override SecurityManager#checkExit.
* This throws an ExitException(status) exception.
* @param status the exit status
*/
public void checkExit(int status) {
throw new ExitException(status);
}

/**
* Override SecurityManager#checkPermission.
* This does nothing.
* @param perm the requested permission.
*/
public void checkPermission(Permission perm) {
// no permission here
}


Loading…
Cancel
Save