Browse Source

Kill exit exception as no longer have the SecurityManager around to throw it.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270154 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
3543dfbbae
2 changed files with 0 additions and 78 deletions
  1. +0
    -39
      proposal/myrmidon/src/main/org/apache/tools/ant/ExitException.java
  2. +0
    -39
      proposal/myrmidon/src/todo/org/apache/tools/ant/ExitException.java

+ 0
- 39
proposal/myrmidon/src/main/org/apache/tools/ant/ExitException.java View File

@@ -1,39 +0,0 @@
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.tools.ant;

/**
* Used to report exit status of classes which call System.exit()
*
* @author Conor MacNeill
* @see NoExitSecurityManager
*/
public class ExitException extends SecurityException
{

private int status;

/**
* Constructs an exit exception.
*
* @param status the status code returned via System.exit()
*/
public ExitException( int status )
{
super( "ExitException: status " + status );
this.status = status;
}

/**
* @return the status code return via System.exit()
*/
public int getStatus()
{
return status;
}
}

+ 0
- 39
proposal/myrmidon/src/todo/org/apache/tools/ant/ExitException.java View File

@@ -1,39 +0,0 @@
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.tools.ant;

/**
* Used to report exit status of classes which call System.exit()
*
* @author Conor MacNeill
* @see NoExitSecurityManager
*/
public class ExitException extends SecurityException
{

private int status;

/**
* Constructs an exit exception.
*
* @param status the status code returned via System.exit()
*/
public ExitException( int status )
{
super( "ExitException: status " + status );
this.status = status;
}

/**
* @return the status code return via System.exit()
*/
public int getStatus()
{
return status;
}
}

Loading…
Cancel
Save