summaryrefslogtreecommitdiffstats
path: root/bpmn/MSOURN-plugin/build.xml
diff options
context:
space:
mode:
authorRob Daugherty <rd472p@att.com>2018-03-14 02:07:32 -0400
committerRob Daugherty <rd472p@att.com>2018-03-14 04:08:41 -0400
commit38f720752af4d4aad8c4e467a288d9048659f688 (patch)
treee81066a8b5c77272e30fb57a64999573c4db4d86 /bpmn/MSOURN-plugin/build.xml
parentaee3d223f92a6f250f43e17558a2dfd576ff7294 (diff)
AT&T 1712 and 1802 release code
This is code from AT&T's 1712 and 1802 releases. Change-Id: Ie1e85851e94bc66c4d9514a0226c221939531a04 Issue-ID: SO-425 Signed-off-by: Rob Daugherty <rd472p@att.com>
Diffstat (limited to 'bpmn/MSOURN-plugin/build.xml')
-rw-r--r--bpmn/MSOURN-plugin/build.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/bpmn/MSOURN-plugin/build.xml b/bpmn/MSOURN-plugin/build.xml
new file mode 100644
index 0000000000..f2dbc55e52
--- /dev/null
+++ b/bpmn/MSOURN-plugin/build.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="urnMap-plugin" 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="deploy.jboss" depends="package.mvn, install.cockpit.plugin" description="Copies the cockit plugin to the deployment directory defined in '${basedir}/build.properties' or '${user.home}/.camunda/build.properties'" />
+
+ <target name="deploy.tomcat" depends="package.mvn" description="Copies the cockpit plugin to the deployment directory defined in '${basedir}/build.properties' or '${user.home}/.camunda/build.properties'">
+ <fail unless="deploy.tomcat.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}.jar" todir="${deploy.tomcat.dir}/camunda/WEB-INF/lib" />
+ <touch file="${deploy.tomcat.dir}/camunda/WEB-INF/web.xml"/>
+ </target>
+
+ <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 package" />
+ </exec>
+ </target>
+
+ <target name="install.cockpit.plugin">
+ <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." />
+ <path id="cockpit.file.id">
+ <fileset dir="${deploy.jboss.dir}">
+ <include name="camunda-webapp-*.war"/>
+ </fileset>
+ </path>
+ <property name="cockpit.file" refid="cockpit.file.id"/>
+ <war destfile="${cockpit.file}" update="true">
+ <zipfileset file="${target.dir}/${ant.project.name}.jar" fullpath="WEB-INF/lib/${ant.project.name}.jar" />
+ </war>
+ </target>
+
+ <target name="undeploy.jboss" description="Deletes the cockpit plugin from the deployment directory defined in '${basedir}/build.properties' or '${user.home}/.camunda/build.properties'">
+ <path id="cockpit.file.id">
+ <fileset dir="${deploy.jboss.dir}">
+ <include name="camunda-webapp-*.war"/>
+ </fileset>
+ </path>
+ <property name="cockpit.file" refid="cockpit.file.id"/>
+ <basename property="cockpit.filename" file="${cockpit.file}"/>
+ <move file="${cockpit.file}" todir="${java.io.tmpdir}"/>
+ <zip destfile="${cockpit.file}">
+ <zipfileset src="${java.io.tmpdir}/${cockpit.filename}">
+ <exclude name="WEB-INF/lib/${ant.project.name}.jar"/>
+ </zipfileset>
+ </zip>
+ </target>
+
+ <target name="undeploy.tomcat" description="Deletes the cockpit plugin from the deployment directory defined in '${basedir}/build.properties' or '${user.home}/.camunda/build.properties'">
+ <delete file="${deploy.tomcat.dir}/camunda/WEB-INF/lib/${ant.project.name}.jar" />
+ </target>
+
+</project>