forked from camunda-consulting/bpmn-cmmn-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
30 lines (23 loc) · 1.48 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="bpmn-cmmn-example" default="deploy.jboss">
<property file="build.properties" />
<property file="${user.home}/.camunda/build.properties" />
<property name="target.dir" value="target" />
<condition property="mvn.executable" value="mvn.bat" else="mvn">
<os family="windows"/>
</condition>
<target name="package.mvn">
<exec executable="${mvn.executable}" dir="." failonerror="true">
<env key="MAVEN_OPTS" value="-Xmx1024m -Xms512m -DskipTests=true -Dmaven.test.skip=true" />
<arg line="clean install" />
</exec>
</target>
<target name="deploy.jboss" depends="package.mvn, copy.war.into.jboss" description="Copies the process application to the deployment directory defined in '${basedir}/build.properties' or '${user.home}/.camunda/build.properties'" />
<target name="copy.war.into.jboss">
<fail unless="deploy.jboss.dir" message="No deployment folder has been configured. Please copy the file '${basedir}/build.properties.example' to '${basedir}/build.properties' or '${user.home}/.camunda/build.properties' and change it according to your environment." />
<copy file="${target.dir}/${ant.project.name}.war" todir="${deploy.jboss.dir}" />
</target>
<target name="undeploy.jboss" description="Deletes the process application from the deployment directory defined in '${basedir}/build.properties' or '${user.home}/.camunda/build.properties'">
<delete file="${deploy.jboss.dir}/${ant.project.name}.war" />
</target>
</project>