forked from yin-bp/activiti-engine-5.12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
134 lines (120 loc) · 6.05 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<project name="bboss persistent" default="default" basedir=".">
<description>
activiti bboss build file
</description>
<tstamp prefix="start" />
<tstamp>
<format property="compile.timestamp" pattern="yyyy-MM-dd HH.mm.ss" />
</tstamp>
<typedef resource="net/sf/antcontrib/antlib.xml" classpath="ant-contrib-1.0b3.jar" />
<!-- set global properties for this build -->
<property file="build.properties" />
<target name="init" description="create timestamp and directories">
<echo>Init...</echo>
<tstamp />
<delete dir="classes-bboss-Activiti" />
<delete dir="classes-bboss-Activiti-test" />
<delete dir="distrib" />
<mkdir dir="classes-bboss-Activiti" />
<mkdir dir="classes-bboss-Activiti-test" />
<mkdir dir="distrib" />
</target>
<target name="default" depends="complete" description="default = build distribution package" />
<!--
==========================
Distribution jar package
==========================
-->
<target name="distrib" depends="init,jar-Activiti,jar-activiti-engine-5.9-sources,copy-depends-liberary" description="copy jar file to distribution directory">
<echo>Construct the distribution package...</echo>
</target>
<target name="compile-Activiti" description="compile the activiti-engine source ">
<echo>compile the Activiti-pool source ...</echo>
<javac destdir="classes-bboss-Activiti" encoding="UTF-8"
target="1.5" source="1.5" deprecation="true" debug="${debug}" optimize="${optimize}" memorymaximumsize="256M" fork="true" verbose="yes">
<src path="src/main/java" />
<classpath id="cp-classes-bboss-Activiti">
<fileset dir="lib/" includes="**/*.jar *.zip" />
<fileset dir="libs-test/" includes="**/*.jar *.zip" />
<fileset dir="lib-log/" includes="**/*.jar *.zip" />
</classpath>
</javac>
<copy todir="classes-bboss-Activiti" >
<fileset dir="src/main/java" excludes="**/*.java" />
<fileset dir="src/main/resources" includes="**/*.*" />
</copy>
</target>
<target name="jar-Activiti" depends="compile-Activiti" description="generate the bboss-peristent library Activiti">
<echo>Generate the activiti-engine library .jar ...</echo>
<jar jarfile="distrib/activiti-engine-5.12.jar" basedir="classes-bboss-Activiti" includes="**/*">
<manifest>
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Specification-Version" value="${revision}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
<attribute name="Compile-Timestamp" value="${compile.timestamp}" />
<attribute name="Compile-User" value="${username}" />
</manifest>
</jar>
</target>
<target name="compile-Activiti-test" depends="jar-Activiti" description="compile the activiti-engine-test source ">
<echo>compile the activiti-engine-5.10-test source ...</echo>
<javac destdir="classes-bboss-Activiti-test" target="1.5" source="1.5" encoding="UTF-8"
deprecation="true" debug="${debug}" optimize="${optimize}"
memorymaximumsize="256M" fork="true" verbose="yes">
<src path="src/test/java" />
<classpath id="cp-classes-bboss-Activiti-test">
<fileset dir="lib/" includes="**/*.jar *.zip" />
<fileset dir="libs-test/" includes="**/*.jar *.zip" />
<fileset dir="lib-log/" includes="**/*.jar *.zip" />
<fileset dir="distrib/" includes="**/*.jar *.zip" />
</classpath>
</javac>
</target>
<target name="jar-Activiti-test" depends="compile-Activiti-test" description="generate the bboss-peristent library .jar">
<echo>Generate the activiti-engine library -test.jar ...</echo>
<jar jarfile="distrib/activiti-engine-test.jar" basedir="classes-bboss-Activiti-test" includes="**/*">
<manifest>
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Specification-Version" value="${revision}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
<attribute name="Compile-Timestamp" value="${compile.timestamp}" />
<attribute name="Compile-User" value="${username}" />
</manifest>
</jar>
</target>
<target name="copy-depends-liberary" description="copy depends liberarys">
<echo>copy depends liberarys ...</echo>
<copy todir="distrib/dependlibs">
<fileset dir="lib" includes="**/*.jar" />
</copy>
<echo>copy depends lib-test liberarys ...</echo>
<copy todir="distrib/dependlibs">
<fileset dir="libs-test" includes="activiti-bpmn-converter-5.12.jar,activiti-bpmn-layout-5.12.jar,activiti-bpmn-model-5.12.jar,java-uuid-generator-3.1.2.jar" />
</copy>
<echo>copy depends src/test/resources/ liberarys ...</echo>
<copy todir="distrib/resouces">
<fileset dir="src/test/resources/" includes="activiti.cfg.xml,log4j.properties,poolman.xml" />
</copy>
</target>
<target name="jar-activiti-engine-5.9-sources" description="jar-activiti-engine-5.9-sources">
<echo>Generate the activiti-engine library -test.jar ...</echo>
<jar jarfile="distrib/activiti-engine-5.12-sources.jar" basedir="src/main/java" includes="**/*">
<manifest>
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Specification-Version" value="${revision}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
<attribute name="Implementation-ProductID" value="${impl.productID}" />
<attribute name="Compile-Timestamp" value="${compile.timestamp}" />
<attribute name="Compile-User" value="${username}" />
</manifest>
</jar>
</target>
<target name="complete" depends="distrib" description="copy depends liberarys">
<echo>delete dir classes-bboss-Activiti...</echo>
<delete dir="classes-bboss-Activiti" />
<delete dir="classes-bboss-Activiti-test" />
<echo>delete dir classes-bboss-Activiti-test...</echo>
</target>
</project>