forked from UlricQin/uic
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
37 lines (33 loc) · 1.36 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="uic">
<property name="debug" value="true"/>
<property name="target" value="1.7"/>
<property name="source" value="1.7"/>
<property name="encoding" value="UTF-8"/>
<property name="build.classes.dir" value="web/WEB-INF/classes"/>
<path id="uic.classpath">
<pathelement location="${build.classes.dir}"/>
<fileset dir="lib" includes="*.jar" />
<fileset dir="web/WEB-INF/lib" includes="*.jar" />
</path>
<target name="init" depends="clean">
<mkdir dir="${build.classes.dir}"/>
<copy includeemptydirs="false" todir="${build.classes.dir}">
<fileset dir="src" excludes="**/*.java"/>
<fileset dir="frame" excludes="**/*.java"/>
<fileset dir="conf" excludes="**/*.java"/>
</copy>
</target>
<target name="build" depends="init">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac includeantruntime="false" debug="${debug}" encoding="${encoding}" destdir="${build.classes.dir}" source="${source}" target="${target}">
<src path="conf"/>
<src path="src"/>
<src path="frame"/>
<classpath refid="uic.classpath"/>
</javac>
</target>
<target name="clean">
<delete dir="${build.classes.dir}"/>
</target>
</project>