tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Compiler.java
Date Mon, 17 Feb 2003 22:36:00 GMT
glenn       2003/02/17 14:36:00

  Modified:    jasper2/src/share/org/apache/jasper/compiler 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
  1.53      +1 -0      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.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- Compiler.java	12 Feb 2003 23:44:22 -0000	1.52
  +++ Compiler.java	17 Feb 2003 22:36:00 -0000	1.53
  @@ -152,6 +152,7 @@
           logger.setErrorPrintStream(System.err);
   	logger.setMessageOutputLevel(Project.MSG_INFO);
           project.addBuildListener( logger);
  +        project.setBasedir( System.getProperty("catalina.home"));
           
           if( options.getCompiler() != null ) {
               if( log.isDebugEnabled() )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message