123 lines
3.9 KiB
Plaintext
123 lines
3.9 KiB
Plaintext
<!-- simple generic build file -->
|
|
|
|
<project name="saxon" default="all" basedir=".">
|
|
|
|
<!-- Properties -->
|
|
|
|
<property name="name" value="saxon9"/>
|
|
<property name="src" value="src"/>
|
|
<property name="build" value="build"/>
|
|
<property name="build.classes" value="${build}/classes"/>
|
|
<property name="build.doc" value="${build}/api"/>
|
|
<property name="build.lib" value="${build}/lib"/>
|
|
<property name="j2se.javadoc" value="/usr/share/javadoc/j2se"/>
|
|
<property name="jdom.javadoc" value="/usr/share/javadoc/jdom"/>
|
|
<property name="fop.javadoc" value="/usr/share/javadoc/fop"/>
|
|
|
|
<!-- Targets -->
|
|
|
|
<!-- Prepare build directories -->
|
|
<target name="prepare">
|
|
<mkdir dir="${src}"/>
|
|
<mkdir dir="${build}"/>
|
|
<mkdir dir="${build.classes}"/>
|
|
<mkdir dir="${build.lib}"/>
|
|
<mkdir dir="${build.doc}"/>
|
|
<copy todir="${src}">
|
|
<fileset dir="." includes="com/**,org/**"/>
|
|
</copy>
|
|
</target>
|
|
|
|
<!-- Kill all the created directories -->
|
|
<target name="clean">
|
|
<delete dir="${build}"/>
|
|
<delete dir="${src}"/>
|
|
</target>
|
|
|
|
<!-- Build classes -->
|
|
<target name="classes" depends="prepare">
|
|
<javac srcdir="${src}" destdir="${build.classes}"/>
|
|
</target>
|
|
|
|
<!-- Build jar archives -->
|
|
<!--
|
|
1973246 10-21-01 14:03 saxon9.jar
|
|
52121 10-21-01 14:03 saxon9-s9api.jar
|
|
50297 10-21-01 14:03 saxon9-xqj.jar
|
|
47959 10-21-01 14:03 saxon9-dom.jar
|
|
22111 10-21-01 14:03 saxon9-xom.jar
|
|
19797 10-21-01 14:03 saxon9-sql.jar
|
|
16002 10-21-01 14:03 saxon9-xpath.jar
|
|
14401 10-21-01 14:03 saxon9-jdom.jar
|
|
13282 10-21-01 14:03 saxon9-dom4j.jar
|
|
-->
|
|
<target name="jar" depends="classes">
|
|
<!-- dom4j -->
|
|
<jar destfile="${build.lib}/${name}-dom4j.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/dom4j/*"/>
|
|
<!-- dom -->
|
|
<jar destfile="${build.lib}/${name}-dom.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/dom/*"/>
|
|
<!-- jdom -->
|
|
<jar destfile="${build.lib}/${name}-jdom.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/jdom/*"/>
|
|
<!-- s9api -->
|
|
<jar destfile="${build.lib}/${name}-s9api.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/s9api/*"/>
|
|
<!-- sql -->
|
|
<jar destfile="${build.lib}/${name}-sql.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/sql/*"/>
|
|
<!-- xom -->
|
|
<jar destfile="${build.lib}/${name}-xom.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/xom/*"/>
|
|
<!-- xqj -->
|
|
<jar destfile="${build.lib}/${name}-xqj.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/xqj/*"/>
|
|
<!-- xpath -->
|
|
<jar destfile="${build.lib}/${name}-xpath.jar"
|
|
basedir="${build.classes}"
|
|
includes="net/sf/saxon/xpath/*">
|
|
<metainf dir="src/META-INF"
|
|
includes="services/javax.xml.xpath.*" />
|
|
</jar>
|
|
<!-- main -->
|
|
<jar jarfile="${build.lib}/${name}.jar"
|
|
basedir="${build.classes}"
|
|
excludes="net/sf/saxon/dom4j/,net/sf/saxon/dom/,net/sf/saxon/jdom/,net/sf/saxon/s9api/,net/sf/saxon/sql/,net/sf/saxon/xom/,net/sf/saxon/xqj/,net/sf/saxon/xpath/">
|
|
<metainf dir="src/META-INF"
|
|
includes="services/javax.xml.transform.*" />
|
|
<manifest>
|
|
<attribute name="Main-Class" value="net.sf.saxon.Transform" />
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<!-- Build the full JavaDocs -->
|
|
<target name="javadoc" depends="prepare">
|
|
<javadoc sourcepath="${src}"
|
|
destdir="${build.doc}"
|
|
doctitle="${name} JavaDoc"
|
|
windowtitle="${name} JavaDoc"
|
|
package="true"
|
|
author="true"
|
|
version="true"
|
|
packagenames="net.sf.saxon.*,org.w3c.xsl.*"
|
|
>
|
|
<link href="${j2se.javadoc}"/>
|
|
<link href="${jdom.javadoc}"/>
|
|
<link href="${fop.javadoc}"/>
|
|
</javadoc>
|
|
</target>
|
|
|
|
<!-- Build everything -->
|
|
<target name="all" depends="jar,javadoc"/>
|
|
|
|
</project>
|