forked from henryyan/kft-activiti-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
57 lines (49 loc) · 2.88 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="kft-activiti-demo" default="welcome">
<!-- properties from files -->
<property file="${user.home}/.kafeitu/build.properties" />
<property file="build.properties" />
<!-- properties from key value -->
<property name="workflow.diagrams" value="src/main/resources/diagrams" />
<property name="workflow.deployments" value="src/main/resources/deployments" />
<!-- 流程定义:每个模块的路径 -->
<property name="wd.leave" value="${workflow.diagrams}/leave" />
<property name="wd.leave-dynamic-from" value="${workflow.diagrams}/leave-dynamic-from" />
<property name="wd.leave-formkey" value="${workflow.diagrams}/leave-formkey" />
<property name="wd.dispatch" value="${workflow.diagrams}/dispatch" />
<!-- 显示欢迎信息以及操作提示 -->
<target name="welcome">
<echo>Activiti演示程序,请输入命令后操作!</echo>
</target>
<!-- 请假流程定义打包-自定义表单 -->
<target name="workflow.package.leave">
<echo>打包流程定义:请假(自定义表单)</echo>
<copy file="${wd.leave}/leave.bpmn" tofile="${wd.leave}/leave.bpmn20.xml" />
<zip destfile="${workflow.deployments}/leave.bar" basedir="${wd.leave}" update="true" includes="*.xml,*.png" />
<delete file="${wd.leave}/leave.bpmn20.xml" />
</target>
<!-- 请假流程定义打包-动态表单 -->
<target name="workflow.package.leave-dynamic-from">
<echo>打包流程定义:请假(动态表单)</echo>
<copy file="${wd.leave-dynamic-from}/leave-dynamic-from.bpmn" tofile="${wd.leave-dynamic-from}/leave-dynamic-from.bpmn20.xml" />
<zip destfile="${workflow.deployments}/leave-dynamic-from.bar" basedir="${wd.leave-dynamic-from}" update="true" includes="*.xml,*.png" />
<delete file="${wd.leave-dynamic-from}/leave-dynamic-from.bpmn20.xml" />
</target>
<!-- 请假流程定义打包-外置表单 -->
<target name="workflow.package.leave-formkey">
<echo>打包流程定义:请假(外置表单)</echo>
<copy file="${wd.leave-formkey}/leave-formkey.bpmn" tofile="${wd.leave-formkey}/leave-formkey.bpmn20.xml" />
<zip destfile="${workflow.deployments}/leave-formkey.bar" basedir="${wd.leave-formkey}" update="true" includes="*.xml,*.png,*.form" />
<delete file="${wd.leave-formkey}/leave-formkey.bpmn20.xml" />
</target>
<!-- 发文会签 -->
<target name="workflow.package.dispatch">
<echo>打包流程定义:发文会签</echo>
<copy file="${wd.dispatch}/dispatch.bpmn" tofile="${wd.dispatch}/dispatch.bpmn20.xml" />
<zip destfile="${workflow.deployments}/dispatch.bar" basedir="${wd.dispatch}" update="true" includes="*.xml,*.png,*.form" />
<delete file="${wd.dispatch}/dispatch.bpmn20.xml" />
</target>
<!-- 流程定义打包 -->
<target name="workflow.package.all" depends="workflow.package.leave,workflow.package.leave-dynamic-from,workflow.package.leave-formkey,workflow.package.dispatch">
</target>
</project>