Browse Source

Security Manager does not work under 1.1. Take it out for now

but I'd like to bring it back with some reflective insulation.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269376 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
be12707c63
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      src/main/org/apache/tools/ant/Main.java

+ 0
- 9
src/main/org/apache/tools/ant/Main.java View File

@@ -413,14 +413,6 @@ public class Main {
PrintStream err = System.err;
PrintStream out = System.out;
SecurityManager oldsm = System.getSecurityManager();
System.setSecurityManager(new SecurityManager() {
public void checkExit(int status) {
throw new ExitException(status);
}
public void checkPermission(java.security.Permission p) {
}
});

try {
System.setOut(new PrintStream(new DemuxOutputStream(project, false)));
@@ -464,7 +456,6 @@ public class Main {
finally {
System.setOut(out);
System.setErr(err);
System.setSecurityManager(oldsm);
}
if (projectHelp) {
printTargets(project);


Loading…
Cancel
Save