jeremias 2003/02/02 08:38:30 Modified: . build.xml Log: Added target for building the servlet. Default target is now "all" which, besides the jar, also builds the WAR and the PDF transcoder. Revision Changes Path 1.74 +19 -6 xml-fop/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-fop/build.xml,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- build.xml 15 Jan 2003 19:30:23 -0000 1.73 +++ build.xml 2 Feb 2003 16:38:28 -0000 1.74 @@ -34,7 +34,7 @@ list of possible build targets. ============================================================================ --> -<project default="package" basedir="."> +<project default="all" basedir="."> <!-- used to set values for testing etc. --> <!-- build-local.properties is not stored in CVS and overrides values from build.properties --> @@ -147,7 +147,7 @@ <property name="src.codegen" value="./src/codegen"/> <property name="docs.dir" value="./docs"/> <property name="xdocs.dir" value="./src/documentation/content/xdocs"/> - <property name="fo.examples.dir" value="./docs/examples/fo"/> + <property name="fo.examples.dir" value="./examples/fo/basic"/> <property name="lib.dir" value="./lib"/> <property name="hyph.dir" value="./src/hyph"/> <property name="conf.dir" value="./conf"/> @@ -459,8 +459,19 @@ </jar> </target> - <target name="all" depends="package"/> <!-- "all" target for us Makefile converts ;-) --> - + <target name="servlet" depends="package" description="Generates the WAR with the sample FOP servlet"> + <echo message="Creating the WAR file"/> + <war warfile="${build.dir}/fop.war" webxml="${src.dir}/conf/web.xml"> + <lib dir="${lib.dir}"> + <include name="avalon-framework*.jar"/> + <include name="batik*.jar"/> + </lib> + <lib dir="${build.dir}"> + <include name="fop.jar"/> + </lib> + </war> + </target> + <target name="pdf-transcoder" depends="compile" description="Generates the jar for the pdf transcoder for Batik"> <echo message="Creating the jar file ${build.dir}/pdf-transcoder.jar"/> @@ -495,6 +506,8 @@ </jar> </target> + <target name="all" depends="package, servlet, pdf-transcoder"/> <!-- "all" target for us Makefile converts ;-) --> + <!-- =================================================================== --> <!-- Testing --> <!-- =================================================================== --> @@ -629,7 +642,7 @@ <!-- =================================================================== --> <target name="dist" depends="dist-src,dist-bin" description="Generates the distribution package"/> - <target name="dist-bin" depends="package"> + <target name="dist-bin" depends="all"> <echo message="Building the binary distribution files (zip,tar)"/> <mkdir dir="${dist.bin.result.dir}"/> <copy todir="${dist.bin.result.dir}"> @@ -646,7 +659,7 @@ <delete file="${Name}-${version}-bin.tar"/> </target> - <target name="dist-src" depends="package, javadocs"> + <target name="dist-src" depends="all, javadocs"> <echo message="Building the source distribution files (zip,tar)"/> <mkdir dir="${dist.src.result.dir}"/> <copy todir="${dist.src.result.dir}">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]