-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.xml
40 lines (36 loc) · 1.11 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
<?xml version="1.0"?>
<project name="Nuxeo Distribution" default="package" basedir=".">
<property file="build.properties" />
<property name="mvn.opts" value="" />
<condition property="osfamily-unix">
<os family="unix" />
</condition>
<condition property="osfamily-windows">
<os family="windows" />
</condition>
<target name="package"
depends="package-unix,package-windows"
description="Package Nuxeo" />
<target name="package-unix" if="osfamily-unix">
<exec executable="mvn" failonerror="true">
<arg value="-f" />
<arg value="./pom.xml" />
<arg value="clean" />
<arg value="package" />
<arg value="-DskipTests=true" />
<arg value="${mvn.opts}" />
</exec>
</target>
<target name="package-windows" if="osfamily-windows">
<exec executable="cmd" failonerror="true">
<arg value="/c" />
<arg value="mvn.bat" />
<arg value="-f" />
<arg value="pom.xml" />
<arg value="clean" />
<arg value="package" />
<arg value="-DskipTests=true" />
<arg value="${mvn.opts}" />
</exec>
</target>
</project>