forked from dbcxy/fast-el
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
56 lines (56 loc) · 1.85 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="fel" default="clean" basedir=".">
<property name="buildDir" value="bin" />
<property name="deployDir" value="deploy" />
<property name="srcDir" value="src" />
<property name="destClassDir" value="${deployDir}\classes" />
<property name="destLibPath" value="${deployDir}\fel-all.jar" />
<property name="classpathDir" value="LibClass" />
<property name="toolsPath" value="d:\jdk1.5\lib\tools.jar" />
<target name="prepare">
<echo>clean ${deployDir} folder</echo>
<mkdir dir="${deployDir}" />
<delete includeEmptyDirs="true">
<fileset dir="${deployDir}" includes="**/*" />
</delete>
<mkdir dir="${deployDir}" />
<mkdir dir="${destClassDir}" />
</target>
<!-- 编译成jdk1.6版本 -->
<target name="compile" description="编译源文件" depends="prepare">
<echo>compile ${srcDir} to ${destClassDir}</echo>
<javac srcdir="${srcDir}" destdir="${destClassDir}" >
<classpath>
<fileset file="${toolsPath}">
</fileset>
<dirset dir="${classpathDir}">
</dirset>
</classpath>
</javac>
<copy todir="${destClassDir}">
<fileset dir="${srcDir}" excludes="**/*.java/" />
<fileset dir="${classpathDir}" excludes="**/*.java/" />
</copy>
<echo>compile success</echo>
</target>
<target name="jar" depends="compile">
<jar compress="true" destfile="${destLibPath}">
<fileset dir="${destClassDir}">
</fileset>
</jar>
<echo>jar success</echo>
<exec executable="explorer">
<arg line="${deployDir}" />
</exec>
</target>
<target name="clean" depends="jar">
<delete includeEmptyDirs="true">
<fileset dir="${deployDir}">
<exclude name="*fel*.jar" />
</fileset>
</delete>
<copy todir="E:\workspace\yuqingsong\WebContent\WEB-INF\lib">
<fileset file="${destLibPath}"></fileset>
</copy>
</target>
</project>