forked from zhuyuqing/bestconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
35 lines (31 loc) · 1020 Bytes
/
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
<?xml version="1.0"?>
<project name="BestConfig" default="prepare" basedir=".">
<property name="source.root" value="src"/>
<property name="class.root" value="classes"/>
<property name="lib.dir" value="lib"/>
<path id="basepath">
<pathelement location="${class.root}" />
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="prepare">
<delete dir="${class.root}"/>
<mkdir dir="${class.root}"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="${source.root}"
destdir="${class.root}"
debug="on"
optimize="off"
deprecation="on">
<compilerarg line="-encoding UTF-8 "/>
<classpath refid="basepath"/>
</javac>
</target>
<target name="run" depends="compile">
<java classname="cn.ict.zyq.bestConf.bestConf.BestConf" fork="true">
<classpath refid="basepath"/>
</java>
</target>
</project>