Browse Source

I pulled out a bit of pre-1.2 testing, but the code it wrapped is probably unneeded, as we dont set a security manager.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277396 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
d75862ba28
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      src/main/org/apache/tools/ant/Main.java

+ 1
- 5
src/main/org/apache/tools/ant/Main.java View File

@@ -603,17 +603,13 @@ public class Main implements AntMain {
InputStream in = System.in;

// use a system manager that prevents from System.exit()
// only in JDK > 1.1
SecurityManager oldsm = null;
if (!JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_0)
&& !JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {
oldsm = System.getSecurityManager();
oldsm = System.getSecurityManager();

//SecurityManager can not be installed here for backwards
//compatibility reasons (PD). Needs to be loaded prior to
//ant class if we are going to implement it.
//System.setSecurityManager(new NoExitSecurityManager());
}
try {
if (allowInput) {
project.setDefaultInputStream(System.in);


Loading…
Cancel
Save