-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
36 lines (30 loc) · 1.03 KB
/
Copy pathbuild.xml
File metadata and controls
36 lines (30 loc) · 1.03 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
<?xml version="1.0" encoding="utf-8"?>
<project name="AntProject" basedir="." default="compile">
<!-- 定义时间戳 -->
<tstamp></tstamp>
<property name="classes" location="./WebRoot/WEB-INF/classes"/>
<property name="jarpath" location="./WebRoot/WEB-INF/lib"/>
<target name="clean">
<delete dir="${classes}"/>
</target>
<target name="init">
<mkdir dir="${classes}"/>
<copy todir="${classes}">
<fileset dir="./src">
<include name="*.properties"/>
</fileset>
</copy>
</target>
<path id="classpath">
<fileset dir="${jarpath}">
<include name="**/*.jar" />
</fileset>
</path>
<!-- 编译java源文件 -->
<target name="compile" depends="init">
<javac srcdir="./src" destdir="${classes}" includeantruntime="false" debug="true">
<compilerarg line=" -encoding utf-8 -nowarn" />
<classpath refid="classpath" />
</javac>
</target>
</project>