This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
90 lines (77 loc) · 2.72 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="build" name="Create Runnable Jar for Project com.wizecore.overthere.ant with libraries in sub-folder">
<property name="package.names" value="com.wizecore.overthere.ant" />
<property name="templates.dir" value="lib/antdoclet/terse" />
<property name="source.dir" value="src" />
<path id="doclet.classpath">
<pathelement path="build"/>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<fileset dir="lib/antdoclet/lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="runtime.classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="build">
<property name="basepath" value="dist"/>
<property name="dir.name" value="overthere"/>
<property name="overthere.path" value="."/>
<property name="overthere.lib.path" value="${overthere.path}/lib"/>
<mkdir dir="build"/>
<mkdir dir="${basepath}"/>
<javac target="1.6" destdir="build" classpathref="runtime.classpath">
<src path="src"/>
<src path="overthere-master/src/main/java"/>
</javac>
<jar destfile="${basepath}/overthere-ant.jar">
<fileset dir="build"/>
<fileset dir="overthere-master/src/main/java">
<exclude name="**/*.java"/>
</fileset>
<fileset dir="src">
<exclude name="**/*.java"/>
</fileset>
</jar>
<delete dir="${basepath}/${dir.name}"/>
<mkdir dir="${basepath}/${dir.name}"/>
<copy todir="${basepath}/${dir.name}">
<fileset dir="${overthere.path}/lib">
<include name="*.jar"/>
<exclude name="**-sources.jar"/>
</fileset>
</copy>
</target>
<target name="javadoc">
<delete dir="doc/tasks"/>
<mkdir dir="doc/tasks"/>
<javadoc access="public" sourcepath="${source.dir}" destdir="doc/tasks"
packagenames="${package.names}"
docletpathref="doclet.classpath"
classpathref="runtime.classpath"
source="1.6">
<doclet name="com.neuroning.antdoclet.AntDoclet">
<param name="-doctitle" value="overthere-ant" />
<param name="-templatesdir" value="${templates.dir}"/>
<param name="-templates" value="html/main.vm" />
<param name="-taskslibfile" value="lib/none.xml" />
<param name="-taskscategoryfile" value="lib/none.xml" />
</doclet>
</javadoc>
<copy todir="doc/tasks" overwrite="true">
<fileset dir="${templates.dir}/html/">
<exclude name="*.vm"/>
</fileset>
</copy>
</target>
<target name="pdf" if="html2pdf">
<exec executable="${html2pdf}">
<arg value="file:///${basedir}/doc/tasks/content.html"/>
<arg value="overthere-ant-tasks.pdf"/>
</exec>
</target>
</project>