|
|
47236f |
--- build.xml.orig 2004-12-14 15:54:50.000000000 +0000
|
|
|
47236f |
+++ build.xml 2010-06-12 19:50:39.976589551 +0100
|
|
|
47236f |
@@ -54,17 +54,16 @@
|
|
|
47236f |
<property name="build.dir" value="./build"/>
|
|
|
47236f |
<property name="build.src" value="${build.dir}/src"/>
|
|
|
47236f |
<property name="build.dest" value="${build.dir}/classes"/>
|
|
|
47236f |
+ <property name="build.javadoc" value="${build.dir}/javadoc"/>
|
|
|
47236f |
<property name="src.dir" value="./src"/>
|
|
|
47236f |
<property name="bin.dir" value="./bin"/>
|
|
|
47236f |
- <condition property="sun.codec.present" >
|
|
|
47236f |
- <available classname="com.sun.image.codec.jpeg.JPEGCodec"/>
|
|
|
47236f |
- </condition>
|
|
|
47236f |
</target>
|
|
|
47236f |
|
|
|
47236f |
<target name="prepare" depends="init">
|
|
|
47236f |
<mkdir dir="${build.dir}"/>
|
|
|
47236f |
<mkdir dir="${build.src}"/>
|
|
|
47236f |
<mkdir dir="${build.dest}"/>
|
|
|
47236f |
+ <mkdir dir="${build.javadoc}"/>
|
|
|
47236f |
<copy todir="${build.src}">
|
|
|
47236f |
<fileset dir="${src.dir}"/>
|
|
|
47236f |
</copy>
|
|
|
47236f |
@@ -86,15 +85,14 @@
|
|
|
47236f |
|
|
|
47236f |
|
|
|
47236f |
<target name="compile2" depends="prepare">
|
|
|
47236f |
- <javac srcdir="${src.dir}" excludes="org/apache/stylebook/processors/XalanProcessor.java" destdir="${build.dest}" debug="${debug}">
|
|
|
47236f |
+ <javac srcdir="${src.dir}" excludes="org/apache/stylebook/processors/XalanProcessor.java" destdir="${build.dest}" debug="${debug}" classpath="${classpath}">
|
|
|
47236f |
<exclude name="**/org/apache/stylebook/processors/XalanProcessor.java"/>
|
|
|
47236f |
- <exclude name="**/org/apache/stylebook/printers/ImagePrinter.java" unless="sun.codec.present"/>
|
|
|
47236f |
</javac>
|
|
|
47236f |
<copy todir="${build.dest}/org/apache/stylebook/data">
|
|
|
47236f |
<fileset dir="${build.src}/org/apache/stylebook/data"/>
|
|
|
47236f |
</copy>
|
|
|
47236f |
</target>
|
|
|
47236f |
- <target name="package2" depends="compile2">
|
|
|
47236f |
+ <target name="package2" depends="compile2,javadoc">
|
|
|
47236f |
<replace file="${build.dest}/org/apache/stylebook/data/engine.xml" token="XalanProcessor" value="Xalan2Processor"/>
|
|
|
47236f |
<jar jarfile="${bin.dir}/${name}-${version-xalan-2}.jar" basedir="${build.dest}" includes="org/**"/>
|
|
|
47236f |
</target>
|
|
|
47236f |
@@ -103,4 +101,24 @@
|
|
|
47236f |
<deltree dir="${build.dir}"/>
|
|
|
47236f |
</target>
|
|
|
47236f |
|
|
|
47236f |
+ <target name="javadoc" depends="prepare">
|
|
|
47236f |
+
|
|
|
47236f |
+ additionalparam="-Xdoclint:none"
|
|
|
47236f |
+ classpath="${classpath}"
|
|
|
47236f |
+ packagenames="*"
|
|
|
47236f |
+ noindex="false"
|
|
|
47236f |
+ splitindex="true"
|
|
|
47236f |
+ use="true"
|
|
|
47236f |
+ version="true"
|
|
|
47236f |
+ author="true"
|
|
|
47236f |
+ windowtitle="${name} ${version-xalan-2}"
|
|
|
47236f |
+ doctitle="${name} ${version-xalan-2} JavaDoc">
|
|
|
47236f |
+ <fileset dir="${build.src}">
|
|
|
47236f |
+ <exclude name="**/XalanProcessor.java"/>
|
|
|
47236f |
+ <exclude name="**/stylebook/data/*"/>
|
|
|
47236f |
+ </fileset>
|
|
|
47236f |
+ <link href="/usr/share/javadoc/java" offline="true" packagelistLoc="/usr/share/javadoc/java"/>
|
|
|
47236f |
+ </javadoc>
|
|
|
47236f |
+ </target>
|
|
|
47236f |
+
|
|
|
47236f |
</project>
|