glenn       2003/02/17 14:36:08

  Modified:    jasper2/src/share/org/apache/jasper/compiler Tag:
                        tomcat_4_branch Compiler.java
  Log:
  An ant Project uses the current directory as its base directory by default.
  The base directory doesn't matter but ant always checks it.  This can cause
  problems when using the SecurityManager with a strict policy.  The Compiler
  now explicitely sets the ant Project base dir to catalina.home.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.18.2.12 +5 -4      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java
  
  Index: Compiler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v
  retrieving revision 1.18.2.11
  retrieving revision 1.18.2.12
  diff -u -r1.18.2.11 -r1.18.2.12
  --- Compiler.java     10 Feb 2003 18:18:05 -0000      1.18.2.11
  +++ Compiler.java     17 Feb 2003 22:36:08 -0000      1.18.2.12
  @@ -161,7 +161,8 @@
               logger.setMessageOutputLevel( Project.MSG_INFO );
           }
           project.addBuildListener( logger );
  -        
  +        project.setBasedir( System.getProperty("catalina.home"));
  +
           if( options.getCompiler() != null ) {
               Constants.jasperLog.log("Compiler " + options.getCompiler(), 
Logger.INFORMATION);
               project.setProperty("build.compiler", options.getCompiler() );
  
  
  

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

Reply via email to