Mantis - Resin
Viewing Issue Advanced Details
1870 minor always 07-12-07 12:03 07-26-07 16:34
sam  
ferg  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.3  
0001870: JspCompiler should default to compiling all JSP in -app-dir
(rep by A Deshpande)

Using Resin 3.1.1 and an ant build script, I'm tring to precompile jsps
in my web application before building the war.

The command seems to run, but produces no output and nothing is actually
created in the work directory.

      <arg value="-app-dir"/>
      <arg path="${webApp.root}"/>
      <arg value="-class-dir"/>
      <arg path="${webApp.work}"/>
      <arg value="-conf"/>
      <arg path="${resin.conf}"/>
The problem is that there was a missing argument, the JspCompiler expects a list of targets to compile after the options. It should default to compiling all of the jsp in -app-dir if nothing else is specified.

Until that is changed, the workaround is to pass the app-dir again, as the final argument:

     <arg value="-app-dir"/>
     <arg path="${webApp.root}"/>
     <arg value="-class-dir"/>
     <arg path="${webApp.work}"/>
     <arg value="-conf"/>
     <arg path="${resin.conf}"/>

     <arg path="${webApp.root}"/>

Notes
(0002146)
ferg   
07-26-07 16:34   
jsp/193e