You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2004/12/18 03:19:20 UTC

precompiling xsp?

i recently found a bug in one of the XSP that a simple compile would
have caught. in order to make the XSP more testable, it would be helpful 
if there were a compile target for them.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29360 might be 
helpful. if there is interest, i can take a look at integrating that 
into the trunk build.


-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: precompiling xsp?

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Gregor J. Rothfuss wrote:
> i recently found a bug in one of the XSP that a simple compile would
> have caught. in order to make the XSP more testable, it would be helpful 
> if there were a compile target for them.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29360 might be 
> helpful. if there is interest, i can take a look at integrating that 
> into the trunk build.

i went ahead and added a new compile-xsp target:

   <target name="compile-xsp" depends="prepare-src"
           description="Compile the XSP sources">
     <mkdir dir="${build.dir}/work"/>
     <java 
classname="org.apache.lenya.cms.cocoon.bean.XSPPrecompileWrapper">
       <arg value="-c${build.webapp}"/>
       <arg value="-w${build.dir}/work"/>
       <classpath>
          <pathelement path="${build.webapp}/WEB-INF/classes"/>
          <fileset dir="${build.webapp}/WEB-INF/lib">
             <include name="*.jar"/>
          </fileset>
          <fileset dir="tools/jetty/lib">
           <include name="servlet-2.3.jar"/>
          </fileset>
       </classpath>
     </java>
   </target>

it found several XSP compile errors which i attached to

http://issues.apache.org/bugzilla/show_bug.cgi?id=32766

let me know how this could be improved. i am especially curious about 
ways to add this to the build so that code changes that affect our XSP's 
get noticed immediately.


-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org