-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-sample.xml
53 lines (47 loc) · 1.5 KB
/
build-sample.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="plugfy" default="jar">
<property name="build" value="build" />
<property name="dist" value="sample" />
<path id="compile-classpath">
<fileset dir="lib" erroronmissingdir="false">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete failonerror="false">
<fileset dir="${build}/classes-sample" />
</delete>
</target>
<target name="init">
<mkdir dir="${build}" />
<mkdir dir="${build}/classes-sample" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init">
<javac srcdir="src/sample" destdir="${build}/classes-sample" debug="on" includeantruntime="false">
<classpath refid="compile-classpath" />
</javac>
</target>
<target name="jar" depends="compile" description="Sample Jar">
<jar destfile="${dist}/sample.jar" index="true" >
<fileset dir="${build}/classes-sample">
<include name="net/sf/plugfy/sample/SampleClass*.class" />
</fileset>
</jar>
<jar destfile="${dist}/sample-all.jar" index="true" >
<fileset dir="${build}/classes-sample" />
</jar>
<jar destfile="${dist}/sample-spring.jar" index="true" >
<fileset dir="${build}/classes-sample" />
<fileset dir="src/sample">
<include name="bean-config-spring.xml"/>
</fileset>
</jar>
<jar destfile="${dist}/sample-spring-webflow.jar" index="true" >
<fileset dir="${build}/classes-sample" />
<fileset dir="src/sample">
<include name="booking-flow.xml"/>
</fileset>
</jar>
</target>
</project>