blob: 64d9036d83e8af92df8430a548ed81af6686a20a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
<?xml version="1.0" encoding="utf-8"?>
<!---
@author: Saleem Abdulrasool <compnerd@gentoo.org>
@date: 5/9/2005
@revision: 1.0_alpha
@notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name}
-->
<project name="Gentoo_Builder" default="jar" basedir=".">
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<property name="project.name" value="saxon8"/>
<property name="pkg" value="${package.name}"/>
<property name="all.jar" value="${project.name}.jar"/>
<property name="dom.jar" value="${project.name}-dom.jar"/>
<property name="jdom.jar" value="${project.name}-jdom.jar"/>
<property name="sql.jar" value="${project.name}-sql.jar"/>
<property name="xom.jar" value="${project.name}-xom.jar"/>
<property name="xpath.jar" value="${project.name}-xpath.jar"/>
<!-- Override any defined properties -->
<property file="build.properties"/>
<path id="lib.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${build}/META-INF/services"/>
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/doc"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" classpath="${classpath}" classpathref="lib.classpath"/>
</target>
<target name="manifest" depends="init">
<manifest file="${build}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Built-By" value="Gentoo Portage"/>
</manifest>
<echo file="${build}/META-INF/services/javax.xml.xpath.XPathFactory" message="net.sf.saxon.xpath.XPathFactory"/>
<echo file="${build}/META-INF/services/javax.xml.transform.TransformerFactory" message="net.sf.saxon.transform.TransformerFactoryImpl"/>
</target>
<target name="jar-saxon8" depends="compile,manifest">
<jar jarfile="${dist}/${all.jar}" manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}">
<include name="net/sf/saxon/**"/>
<include name="META-INF/services/javax.xml.transform.TransformFactory"/>
<exclude name="**/dom/**"/>
<exclude name="**/jdom/**"/>
<exclude name="**/sql/**"/>
<exclude name="**/xom/**"/>
<exclude name="**/xpath/**"/>
</fileset>
</jar>
</target>
<target name="jar-saxon8-dom" depends="compile,manifest">
<jar jarfile="${dist}/${dom.jar}" manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}">
<include name="net/sf/saxon/dom/**"/>
</fileset>
</jar>
</target>
<target name="jar-saxon8-jdom" depends="compile,manifest">
<jar jarfile="${dist}/${jdom.jar}" manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}">
<include name="net/sf/saxon/jdom/**"/>
</fileset>
</jar>
</target>
<target name="jar-saxon8-sql" depends="compile,manifest">
<jar jarfile="${dist}/${sql.jar}" manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}">
<include name="net/sf/saxon/jdom/**"/>
</fileset>
</jar>
</target>
<target name="jar-saxon8-xom" depends="compile,manifest">
<jar jarfile="${dist}/${xom.jar}" manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}">
<include name="net/sf/saxon/xom/**"/>
</fileset>
</jar>
</target>
<target name="jar-saxon8-xpath" depends="compile,manifest">
<jar jarfile="${dist}/${xpath.jar}" manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}">
<include name="net/sf/saxon/xpath/**"/>
<include name="META-INF/services/javax.xml.xpath.XPathFactory"/>
</fileset>
</jar>
</target>
<target name="jar" depends="jar-saxon8,jar-saxon8-dom,jar-saxon8-jdom,jar-saxon8-sql,jar-saxon8-xom,jar-saxon8-xpath"/>
<target name="javadoc" depends="compile">
<javadoc destdir="${dist}/doc/api" classpathref="lib.classpath">
<fileset dir="${src}"/>
</javadoc>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
|