Browse Source

Pretty html files are now generated from java example code.

Added testing target which does not contain manuals. Usable for functional testing only.

svn changeset:538/svn branch:toolkit
tags/6.7.0.beta1
Jani Laakso 17 years ago
parent
commit
3c2d63dd93
1 changed files with 13 additions and 10 deletions
  1. 13
    10
      build/build.xml

+ 13
- 10
build/build.xml View File

<taskdef name="java2html" classname="de.java2html.anttasks.Java2HtmlTask" classpath="build/lib/java2html.jar" /> <taskdef name="java2html" classname="de.java2html.anttasks.Java2HtmlTask" classpath="build/lib/java2html.jar" />


<!-- Release build target --> <!-- Release build target -->
<target name="release" depends="package" description="Build public release. Theme files are syntax checked, optimized and obfuscated.">
</target>
<target name="release" depends="package" description="Build public release. Theme files are syntax checked, optimized and obfuscated." />


<!-- Testing build target --> <!-- Testing build target -->
<target name="testing" depends="package-testing" description="Like release target but without documentation or zip. Faster iteration for functional testing.">
</target>
<target name="testing" depends="package-testing" description="Like release target but without documentation or zip. Faster iteration for functional testing." />


<!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - -->


<!-- Demo - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- Demo - - - - - - - - - - - - - - - - - - - - - - - - - - - -->


<target name="demo" depends="libs,compile-java,theme-jar"> <target name="demo" depends="libs,compile-java,theme-jar">
<java2html srcdir="src/${toolkit-package}/demo" destdir="src/${toolkit-package}/demo" includes="**/*.java" style="eclipse" showLineNumbers="true" showFileName="true" showTableBorder="false" />
<war warfile="${output-dir}/demo/${product-file}.war" webxml="WebContent/WEB-INF/web.xml"> <war warfile="${output-dir}/demo/${product-file}.war" webxml="WebContent/WEB-INF/web.xml">
<classes dir="build/result/classes"> <classes dir="build/result/classes">
<include name="${toolkit-package}/demo/**/*.class" /> <include name="${toolkit-package}/demo/**/*.class" />
<include name="${themes-jar-name}" /> <include name="${themes-jar-name}" />
</lib> </lib>
<fileset dir=""> <fileset dir="">
<include name="src/${toolkit-package}/demo/**/*.java" />
<!-- <include name="src/${toolkit-package}/demo/**/*.java" /> -->
<include name="src/${toolkit-package}/demo/Calc.*" />
<include name="src/${toolkit-package}/demo/HelloWorld.*" />
</fileset> </fileset>
<fileset dir="WebContent"> <fileset dir="WebContent">
<exclude name="**/.svn" /> <exclude name="**/.svn" />


<copy todir="${output-dir}/demo/src"> <copy todir="${output-dir}/demo/src">
<fileset dir="build/result/src"> <fileset dir="build/result/src">
<include name="${toolkit-package}/demo/**/*.java" />
<include name="src/${toolkit-package}/demo/Calc.*" />
<include name="src/${toolkit-package}/demo/HelloWorld.*" />
</fileset> </fileset>
</copy> </copy>
</target> </target>
<pathelement path="build/lib/fop-0.92/xercesImpl-2.7.1.jar" /> <pathelement path="build/lib/fop-0.92/xercesImpl-2.7.1.jar" />
<pathelement path="build/lib/fop-0.92/xml-apis-1.3.02.jar" /> <pathelement path="build/lib/fop-0.92/xml-apis-1.3.02.jar" />
</path> </path>
<java classname="org.apache.xalan.xslt.Process" failonerror="yes" fork="yes" maxmemory="764m">
<java classname="org.apache.xalan.xslt.Process" failonerror="yes" fork="yes" maxmemory="768m">
<arg value="-in" /> <arg value="-in" />
<arg value="doc/manual/book.xml" /> <arg value="doc/manual/book.xml" />
<arg value="-xsl" /> <arg value="-xsl" />
</target> </target>


<!-- As release, but no documentation or zip package --> <!-- As release, but no documentation or zip package -->
<target name="package-testing" depends="clean-all,libs,themes,demo,package-docs">
</target>
<target name="package-testing" depends="clean-all,libs,themes,demo,package-docs" />


<!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - -->
<target name="clean-all" depends=""> <target name="clean-all" depends="">
<delete dir="build/result/*" />
<delete includeemptydirs="true" defaultexcludes="false">
<fileset dir="build/result" includes="**/*" />
</delete>
<delete file="build/docbook/conf/temp.xsl" /> <delete file="build/docbook/conf/temp.xsl" />
</target> </target>



Loading…
Cancel
Save