peterreilly    2005/01/21 07:12:53

  Modified:    src/main/org/apache/tools/ant/util/optional Tag:
                        ANT_16_BRANCH NoExitSecurityManager.java
  Log:
  sync
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.5   +11 -1     
ant/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java
  
  Index: NoExitSecurityManager.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java,v
  retrieving revision 1.3.2.4
  retrieving revision 1.3.2.5
  diff -u -r1.3.2.4 -r1.3.2.5
  --- NoExitSecurityManager.java        9 Mar 2004 17:01:59 -0000       1.3.2.4
  +++ NoExitSecurityManager.java        21 Jan 2005 15:12:53 -0000      1.3.2.5
  @@ -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 @@
    */
   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
       }
  
  
  

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

Reply via email to