-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
79 lines (65 loc) · 2.73 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
<project name="frej" default="jar" basedir=".">
<property name="rootDir" value="."/>
<property name="version" value="v1_1b_rev58"/>
<property name="srcDir" value="${rootDir}/src"/>
<property name="outDir" value="${rootDir}/bin"/>
<property name="docDirName" value="doc"/>
<property name="docDir" value="${rootDir}/${docDirName}"/>
<property name="jarFile" value="${rootDir}/${ant.project.name}.jar"/>
<property name="archive" value="${rootDir}/${ant.project.name}_${version}.zip"/>
<property name="docFile" value="${rootDir}/${ant.project.name}_doc.zip"/>
<!-- following must be "on" or "off" -->
<property name="includeDebugInfo" value="off" />
<target name="compile">
<mkdir dir="${outDir}"/>
<javac srcdir="${srcDir}" destdir="${outDir}"
includeantruntime="${false}" debug="${includeDebugInfo}">
</javac>
</target>
<target depends="compile" name="jar">
<jar destfile="${jarFile}">
<fileset file="${outDir}/**"/>
<manifest>
<attribute name="Main-Class" value="test.Main"/>
<attribute name="Implementation-Title" value="FREJ (Free Regular Expressions for Java)"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Implementation-Vendor" value="http://frej.sf.net"/>
</manifest>
</jar>
</target>
<target name="clean">
<delete includeemptydirs="true" quiet="true">
<fileset dir="${outDir}" includes="**"/>
<fileset dir="${docDir}" includes="**"/>
<fileset file="${jarFile}"/>
<fileset file="${docFile}"/>
</delete>
</target>
<target name="doc" depends="compile">
<mkdir dir="${docDir}"/>
<javadoc destdir="${docDir}" access="public" noqualifier="java.lang"
windowtitle="FREJ - Fuzzy Regular Expressions for Java"
Overview="src/overview.html">
<packageset dir="${srcDir}">
<include name="**"/>
</packageset>
</javadoc>
<zip destfile="${docFile}">
<fileset file="${docDir}/**"/>
</zip>
</target>
<target name="all" depends="jar,doc">
<zip destfile="${archive}">
<fileset file="${jarFile}"/>
<fileset dir="${rootDir}">
<include name="${docDirName}/**"/>
</fileset>
<fileset dir="${rootDir}">
<include name="readme.txt"/>
<include name="sources.txt"/>
<include name="license_gpl3.txt"/>
<include name="license_lgpl3.txt"/>
</fileset>
</zip>
</target>
</project>