-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
103 lines (87 loc) · 3.65 KB
/
build.xml
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
<?xml version='1.0'?>
<project name="IntraLibrarySearchModule" default="build" basedir=".">
<property name="src" value="src"/>
<property name="classes" value="classes"/>
<property name="lib" value="lib"/>
<property name="distribution" value="distribution"/>
<property name="compiletimelib" value="compiletimelib"/>
<property name="pages" value="pages"/>
<property name="src_pages" value="pages"/>
<property name="dest_pages" value="classes/pages"/>
<property name="build.docs.dir" value="builddocs" />
<property name="aurigadoc.dir" value="aurigadoc"/>
<property name="aurigadoc.lib.dir" value="${aurigadoc.dir}/lib"/>
<property name="aurigadoc.home" value="${aurigadoc.dir}"/>
<property environment="env"/>
<taskdef resource="aurigadoctask.properties">
<classpath>
<dirset dir="${aurigadoc.home}/bin" />
<fileset dir="${aurigadoc.home}/lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</taskdef>
<path id="sdk.classpath">
<fileset dir="${compiletimelib}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="cleanup">
<delete dir="${distribution}"/>
<delete dir="${classes}"/>
<delete file="${lib}/IntraLibrarySearchModule.jar"/>
</target>
<target name="init" depends="cleanup">
<mkdir dir="${classes}"/>
<mkdir dir="${dest_pages}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${classes}">
<classpath refid="sdk.classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<copy todir="${dest_pages}">
<fileset dir="${src_pages}/"/>
</copy>
<jar destfile="${lib}/IntraLibrarySearchModule.jar">
<fileset dir="${classes}/"/>
<fileset file="DeployableComponentConfig.xml"/>
</jar>
</target>
<target name="build" depends="cleanup, jar, buildDocs">
<mkdir dir="${distribution}"/>
<copy overwrite="true" file="${lib}/IntraLibrarySearchModule.jar" todir="${distribution}"/>
<copy overwrite="true" todir="${distribution}">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</copy>
<zip destfile="${distribution}/IntraLibrarySearchModule.zip" basedir="${distribution}"/>
<tar destfile="${distribution}/IntraLibrarySearchModule.tar" basedir="${distribution}" excludes="IntraLibrarySearchModule.zip"/>
</target>
<target name="buildDocs">
<echo message="building installation documentation"/>
<mkdir dir="${build.docs.dir}"/>
<mkdir dir="${distribution}/docs"/>
<mkdir dir="${distribution}/docs/images"/>
<copy file="docs/smallintralibrary.gif" todir="${build.docs.dir}"/>
<copy file="docs/style.css" todir="${build.docs.dir}"/>
<copy overwrite="true" todir="${distribution}/docs/images">
<fileset dir="docs/images">
<include name="*.jpg"/>
</fileset>
</copy>
<aurigadoc format="html" input="docs/installation_guide.xml" output="${build.docs.dir}/installation_guide.html" />
<aurigadoc format="pdf" input="docs/installation_guide.xml" output="${build.docs.dir}/installation_guide.pdf" />
<aurigadoc format="html" input="docs/users_guide.xml" output="${build.docs.dir}/users_guide.html" />
<aurigadoc format="pdf" input="docs/users_guide.xml" output="${build.docs.dir}/users_guide.pdf" />
<copy todir="${distribution}/docs">
<fileset dir="${build.docs.dir}"/>
</copy>
<delete dir="${build.docs.dir}"/>
</target>
</project>