-
Notifications
You must be signed in to change notification settings - Fork 113
/
build.xml
76 lines (62 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
<project name="client" default="jarClass" basedir=".">
<property name="product" value="beetl"/>
<property name="version" value="2.0"/>
<property name="classes.dir" value="${basedir}/bin"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="lib.dir" value="${basedir}"/>
<!--property name="lib.dir" value="E:\lijz\javamonkey\bee\trunk\workspace\tl_sample_web\WebContent\WEB-INF\lib"/-->
<property name="jar.file" value="${product}.${version}.jar"/>
<target name="clean">
<echo>clean build dir</echo>
<delete dir="${build.dir}" quiet="true"/>
</target>
<target name="init" depends="clean">
<mkdir dir="${build.dir}"/>
</target>
<target name="jarClass" depends="init">
<jar destfile="${lib.dir}/${jar.file}">
<fileset dir="${classes.dir}">
<exclude name="org/beetl/test/**" />
<exclude name="org/antlr/**" />
<exclude name="**/*.g" />
<exclude name="org/beetl/coret/asm3/**" />
<exclude name="**/*.tokens" />
<exclude name="org/beetl/performance/**" />
<include name="org/beetl/core/**"/>
<include name="org/beetl/ext/**"/>
</fileset>
<zipfileset src="alllib/antlr-runtime-4.1.jar"/>
<zipfileset src="alllib/asm-4.1.jar"/>
</jar>
</target>
<target name="jarSrc" depends="init">
<jar destfile="${basedir}/beetl_src_${version}.jar">
<fileset dir="${basedir}/src">
<exclude name="**/samples/**" />
</fileset>
<fileset dir="${basedir}/ext">
</fileset>
</jar>
</target>
<target name="javadoc" description="Generate the Javadoc HTML pages.">
<delete dir="../javadoc" />
<mkdir dir="../javadoc" />
<javadoc destdir="../javadoc"
windowtitle="Beetl API"
use="yes"
linksource="no"
splitindex="yes"
encoding="UTF-8" docencoding="UTF-8">
<classpath>
<fileset dir="${basedir}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<!-- 需要修改 Begin -->
<packageset dir="src" defaultexcludes="yes">
<include name="org/beetl/**"/>
</packageset>
<!-- 需要修改 End -->
</javadoc>
</target>
</project>