forked from subchen/javadoc.chm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (44 loc) · 1.76 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="dist" basedir=".">
<property file="${basedir}/build.properties" />
<path id="compile.classpath">
<fileset dir="${basedir}/lib" includes="**/*.jar" />
</path>
<path id="compile.sourcepath">
<pathelement location="${basedir}/src/main/java"/>
</path>
<path id="compile.resources">
<fileset dir="${basedir}/src/main/resources" excludes="**/*.java" />
</path>
<target name="clean">
<delete dir="${build.dir}" quiet="true" />
</target>
<target name="compile" depends="clean">
<mkdir dir="${classes.dir}" />
<javac destdir="${classes.dir}"
classpathref="compile.classpath"
debug="on" nowarn="true" deprecation="off"
encoding="${javac.encoding}"
includeantruntime="off">
<src refid="compile.sourcepath" />
</javac>
<copy todir="${classes.dir}">
<path refid="compile.resources" />
</copy>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}" />
<jar jarfile="${dist.jar}" whenempty="fail">
<fileset dir="${classes.dir}" includes="**" />
<manifest>
<attribute name="Built-By" value="${product.author}" />
<attribute name="Implementation-Vendor" value="${product.vendor}" />
<attribute name="Implementation-Title" value="${product.name}" />
<attribute name="Implementation-Version" value="${product.version}" />
<attribute name="Main-Class" value="jetbrick.tools.chm.Application" />
</manifest>
</jar>
</target>
<target name="dist" depends="jar">
</target>
</project>