forked from sqlparser/gsp_demo_java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (37 loc) · 1.64 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
<project name="checkGSP" basedir="." default="run_demo_listGSPInfo" xmlns:if="ant:if" xmlns:unless="ant:unless">
<property name="listGSPInfo-main-class" value="demos.listGSPInfo.listGSPInfo"/>
<property name="demos.dir" value="src/main/java/demos"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.demos.dir" value="${build.dir}/jar/demos"/>
<property name="jar.dir" value="lib"/>
<path id="classpath">
<fileset dir="${jar.dir}" includes="**/*.jar"/>
</path>
<target name="mk_class_dir">
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes.dir}"/>
</target>
<target name="compile_demo_listGSPInfo" depends="mk_class_dir">
<javac srcdir="${demos.dir}/listGSPInfo" destdir="${classes.dir}" classpathref="classpath" includeantruntime="false" />
</target>
<target name="jar_demo_listGSPInfo" depends="compile_demo_listGSPInfo">
<jar destfile="${jar.demos.dir}/listGSPInfo.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${listGSPInfo-main-class}"/>
</manifest>
</jar>
</target>
<target name="run_demo_listGSPInfo" depends="jar_demo_listGSPInfo">
<java fork="true" classname="${listGSPInfo-main-class}">
<classpath>
<path refid="classpath"/>
<path location="${jar.demos.dir}/listGSPInfo.jar"/>
</classpath>
</java>
<antcall target="clean" />
</target>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
</project>