It allows you to use the --compile option on org.apache.jasper.jspc so
that it will put the compiled classes in the source directory not in to
package directory.

--- old/JasperC.java    2002-07-09 11:27:40.000000000 -0400
+++ new/JasperC.java    2002-09-18 08:29:47.000000000 -0400
@@ -161,6 +161,9 @@
             File dir = jspc.getWebApp().getDirectory();
             addArg(cmd, "-webapp", dir);
         }
+        if (jspc.getCompile() == true){
+           addArg(cmd, "--compile");
+       }
         logAndAddFilesToCompile(getJspc(), getJspc().getCompileList(), cmd);
         return cmd;
     }
--- old/JspC.java       2002-07-09 11:27:48.000000000 -0400
+++ new/JspC.java       2002-09-18 08:29:17.000000000 -0400
@@ -160,7 +160,11 @@
      */
     protected WebAppParameter webApp;
 
+    /**
+     *  --compile  Compiles the jsp pages.
+     */
 
+    private boolean compile = false;
         
     private static final String FAIL_MSG
         = "Compile failed, messages should have been provided.";
@@ -370,6 +374,19 @@
     }
     
     /**
+     * Set the compile option
+     */
+    public void setCompile(String s){
+       if (s.equalsIgnoreCase("true")){
+            compile = true;
+       }
+    }
+    
+    public boolean getCompile(){
+       return compile;
+    }
+    
+    /**
      * execute by building up a list of files that
      * have changed and hand them off to a jsp compiler
      */

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

Reply via email to