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