ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Main.java
Date Mon, 23 Jul 2001 14:50:49 GMT
conor       01/07/23 07:50:49

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  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.
  
  Revision  Changes    Path
  1.41      +0 -9      jakarta-ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- Main.java	2001/07/22 15:44:10	1.40
  +++ Main.java	2001/07/23 14:50:49	1.41
  @@ -413,14 +413,6 @@
               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 @@
               finally {
                   System.setOut(out);
                   System.setErr(err);
  -                System.setSecurityManager(oldsm);
               }
               if (projectHelp) {
                       printTargets(project);
  
  
  

Mime
View raw message