Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Attributes
- Next: sun-appserv-update

### Example

The following example uses the `webapp` attribute to generate Java source files from JSP files. The `sun-appserv-jspc` task is immediately followed by a `javac` task, which compiles the generated Java files into class files. The `classpath` value in the `javac` task must be all on one line with no spaces.

    <sun-appserv-jspc
     destdir="${assemble.war}/generated"
     webapp="${assemble.war}"
     classpath="${assemble.war}/WEB-INF/classes"
     asinstalldir="${asinstalldir}" />
    <javac
     srcdir="${assemble.war}/WEB-INF/generated"
     destdir="${assemble.war}/WEB-INF/generated"
     debug="on"
     classpath="${assemble.war}/WEB-INF/classes:${asinstalldir}/lib/
       appserv-rt.jar:${asinstalldir}/lib/appserv-ext.jar">
     <include name="**/*.java"/>
    </javac>

- Previous: Attributes
- Next: sun-appserv-update

- © 2010, Oracle Corporation and/or its affiliates