You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Thomas Riemer <to...@58k.com> on 2001/03/05 04:34:50 UTC

Patch for JspInterceptor.java

I've been trying to get jikes to work under tomcat - and finally tracked
down the problem I was facing to this:
in TC 3.3.1 M1
src/facade22/org/apache/tomcat/facade/JspInterceptor.java

In the case where there is no context classpath, jikes will not work
because of invalid
class path.   I've included my changes below...  I'm not sure what form
you folks accept diffs in...
so here is my first shot...    /tmp/JspInterceptor.java was my
original....

-Tom
------------------------------patch below here
---------------------------------------------------
--- JspInterceptor.java Sun Mar  4 22:34:09 2001
+++ /tmp/JspInterceptor.java    Sun Mar  4 22:33:46 2001
@@ -655,12 +655,8 @@
     {

         javac.setEncoding(javaEncoding);
-
-       String cp=System.getProperty("java.class.path");
-       String contextCp = ctxt.getClassPath();
-       if (contextCp != null)
-           cp += sep + contextCp;
-       cp += sep + ctxt.getOutputDir();
+       String cp=System.getProperty("java.class.path")+ sep +
+           ctxt.getClassPath() + sep + ctxt.getOutputDir();
 //        System.out.println("classpath:"+cp);
         javac.setClasspath( cp );
        if( debug>5) log.log( "ClassPath " + cp);