forked from b1412/jfinal-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
75 lines (72 loc) · 2.7 KB
/
build.xml
File metadata and controls
75 lines (72 loc) · 2.7 KB
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
<project name="jfinal-ext" default="jar">
<tstamp>
<format property="now" pattern="yyyyMMdd" locale="zh"/>
</tstamp>
<property name="lib.dir" location="WebRoot/WEB-INF/lib"/>
<property name="src" location="src"/>
<property name="build.dir" location="build"/>
<property name="build.classes.dir" location="${build.dir}/classes"/>
<property name="debug" value="on"/>
<property name="jdk.version" value="1.6"/>
<property name="release.version" value="1.3"/>
<property name="build.jar" location="${build.dir}/jfinal-ext-${release.version}-b${now}-${jdk.version}.jar"/>
<path id="compile.lib">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean">
<deltree dir="${build.dir}"/>
</target>
<target name="prepare" depends="clean">
<echo>
#############################################
# JFinal-Ext prepare, create build dirs... #
#############################################
</echo>
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
</target>
<target name="compile" depends="prepare">
<echo>
#########################################
# JFinal-Ext #
#########################################
</echo>
<javac encoding="UTF-8" debug="${debug}" includeantruntime="false" source="${jdk.version}" target="${jdk.version}" srcdir="${src}" destdir="${build.classes.dir}">
<compilerarg line="-encoding UTF-8" />
<classpath>
<path refid="compile.lib"/>
<pathelement location="${build.dir}"/>
</classpath>
</javac>
</target>
<target name="copysrc" depends="compile">
<echo>
###################################
# copy src #
###################################
</echo>
<copy todir="${build.classes.dir}">
<fileset dir="${src}">
<include name="**/*"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<echo>
###################################
# JFinal-Ext jar #
###################################
</echo>
<jar jarfile="${build.jar}" basedir="${build.classes.dir}"/>
</target>
<target name="jarwithsrc" depends="copysrc">
<echo>
###################################
# JFinal-Ext jar #
###################################
</echo>
<jar jarfile="${build.jar}" basedir="${build.classes.dir}"/>
</target>
</project>