This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
34 lines (28 loc) · 1.55 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="camunda-cockpit-plugin-statistics-root-1.0.0" default="deploy.jboss">
<property file="build.properties" />
<property file="${user.home}/.camunda/build.properties" />
<property name="camunda-cockpit-plugin-statistics-root-1.0.0" 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="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 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-*jboss-*.war" />
</fileset>
</path>
<property name="cockpit.file" refid="cockpit.file.id" />
<war destfile="${cockpit.file}" update="true">
<zipfileset file="target/${ant.project.name}.jar" fullpath="WEB-INF/lib/${ant.project.name}.jar" />
</war>
</target>
</project>