saxon10/saxon10.build.xml

128 lines
4.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- simple generic build file -->
<project name="saxon" default="all" basedir=".">
<!-- Properties -->
<property name="name" value="saxon"/>
<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"/>
<property name="dom4j.javadoc" value="/usr/share/javadoc/dom4j"/>
<!-- 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/**,net/**"/>
</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}"
excludes="net/sf/saxon/option/axiom/**/*.java"
destdir="${build.classes}"
encoding="ISO-8859-1"
includeantruntime="true"
source="8"
target="8"
/>
</target>
<!-- Copy resources -->
<target name="resources">
<copy todir="${build.classes}">
<fileset dir="${src}" includes="net/sf/saxon/data/**"/>
</copy>
</target>
<!-- Build jar archives -->
<target name="jar" depends="classes,resources">
<jar
jarfile="${build.lib}/${name}.jar"
basedir="${build.classes}"
>
<manifest>
<attribute name="Main-Class" value="net.sf.saxon.Transform"/>
</manifest>
<service
type="javax.xml.transform.TransformerFactory"
provider="net.sf.saxon.TransformerFactoryImpl"
/>
</jar>
</target>
<!-- Build the full JavaDocs -->
<target name="javadoc" depends="prepare">
<condition property="no.module.directories" value="--no-module-directories" else="">
<and>
<javaversion atleast="9"/>
<javaversion atmost="12"/>
</and>
</condition>
<javadoc
sourcepath="${src}"
destdir="${build.doc}"
windowtitle="${name} JavaDoc"
package="true"
author="true"
version="true"
excludepackagenames="net.sf.saxon.option.axiom.*"
source="1.8"
encoding="ISO-8859-1"
docencoding="UTF-8"
bottom="Copyright (c) 2004—2020 Saxonica Limited. All rights reserved."
doctitle="Saxon 10 Java API Documentation"
additionalparam="${no.module.directories}"
>
<group title="s9api Interface" packages="net.sf.saxon.s9api"/>
<group title="Other Interfaces">
<!-- packagenames="net.sf.saxon.*,org.w3c.xsl.*" -->
<package name="net.sf.saxon"/>
<package name="net.sf.saxon.lib"/>
<package name="net.sf.saxon.om"/>
<package name="net.sf.saxon.query"/>
<package name="net.sf.saxon.sxpath"/>
<package name="net.sf.saxon.value"/>
<package name="net.sf.saxon.type"/>
<package name="net.sf.saxon.xpath"/>
<package name="net.sf.saxon.xqj"/>
<package name="com.saxonica.config"/>
<package name="com.saxonica.jaxp"/>
<package name="com.saxonica.schema"/>
</group>
<group title="External Interfaces">
<package name="javax.xml.xquery"/>
</group>
<link href="${j2se.javadoc}"/>
<link href="${jdom.javadoc}"/>
<link href="${fop.javadoc}"/>
<link href="${dom4j.javadoc}"/>
</javadoc>
</target>
<!-- Build everything -->
<target name="all" depends="jar,javadoc"/>
</project>