remm 2002/08/27 06:20:35 Modified: jsr154 build.xml Log: - Build the examples webapp. Revision Changes Path 1.2 +29 -1 jakarta-servletapi-5/jsr154/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr154/build.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- build.xml 13 Aug 2002 16:21:42 -0000 1.1 +++ build.xml 27 Aug 2002 13:20:35 -0000 1.2 @@ -15,6 +15,9 @@ <property name="servlet-api.build" value="build"/> <property name="servlet-api.dist" value="dist"/> + <path id="examples.classpath"> + <pathelement location="${servlet-api.build}/classes"/> + </path> <!-- ===================== Prepare Directories ========================= --> @@ -25,6 +28,7 @@ <mkdir dir="${servlet-api.build}/classes"/> <mkdir dir="${servlet-api.build}/docs"/> <mkdir dir="${servlet-api.build}/docs/api"/> + <mkdir dir="${servlet-api.build}/examples"/> <!-- "Dist" Hierarchy --> <mkdir dir="${servlet-api.dist}"/> @@ -32,6 +36,7 @@ <mkdir dir="${servlet-api.dist}/docs/api"/> <mkdir dir="${servlet-api.dist}/lib"/> <mkdir dir="${servlet-api.dist}/src"/> + <mkdir dir="${servlet-api.dist}/examples"/> <uptodate property="docs.uptodate" targetfile="${servlet-api.build}/docs/api/index.html"> <srcfiles dir="src/share" includes="**/*.java" /> @@ -93,8 +98,31 @@ </target> + <!-- ======================== Build JavaDoc =========================== --> + <target name="examples" depends="prepare"> + + <copy todir="${servlet-api.build}/examples"> + <fileset dir="examples"> + <exclude name="build.*"/> + </fileset> + </copy> + + <javac srcdir="examples/WEB-INF/classes" + destdir="${servlet-api.build}/examples/WEB-INF/classes" + debug="${compile.debug}" deprecation="${compile.deprecation}" + optimize="${compile.optimize}" + excludes="**/CVS/**"> + <classpath refid="examples.classpath" /> + </javac> + + <jar jarfile="${servlet-api.dist}/examples/examples.war" + basedir="${servlet-api.build}/examples" includes="**"/> + + </target> + + <!-- ===================== Distribution Files ========================= --> - <target name="dist" depends="compile,javadoc" + <target name="dist" depends="compile,examples,javadoc" description="Create binary distribution"> <!-- Copy Javadocs -->
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>