forked from nuxeo-archives/nuxeo-distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
82 lines (77 loc) · 2.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
<project name="Nuxeo Distribution" default="distrib" 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="-Dmaven.test.skip=true" />
<arg value="-Pall-distributions" />
<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="-Dmaven.test.skip=true" />
<arg value="-Pall-distributions" />
<arg value="${mvn.opts}" />
</exec>
</target>
<target name="list-available-distributions">
<echo message="Available distributions are:" />
<echo message="jboss - build all JBoss distributions" />
<echo message="jetty - build all Jetty distributions (DEPRECATED)" />
<echo message="tomcat - build all Tomcat distribution" />
<echo message="all-distributions - build all available distributions" />
</target>
<target name="choose-distrib" unless="distrib">
<input message="Which distribution do you want to build?"
validargs="jboss,jetty,tomcat,all-distributions"
addproperty="distrib" />
</target>
<target name="distrib"
depends="list-available-distributions,choose-distrib,distrib-unix,distrib-windows"
description="Build a distribution" />
<target name="distrib-unix" if="osfamily-unix">
<exec executable="mvn" failonerror="true">
<arg value="clean" />
<arg value="install" />
<arg value="package" />
<arg value="-Dmaven.test.skip=true" />
<arg value="-P" />
<arg value="${distrib}" />
<arg value="${mvn.opts}" />
</exec>
</target>
<target name="distrib-windows" if="osfamily-windows">
<exec executable="cmd" failonerror="true">
<arg value="/c" />
<arg value="mvn.bat" />
<arg value="clean" />
<arg value="install" />
<arg value="package" />
<arg value="-Dmaven.test.skip=true" />
<arg value="-P" />
<arg value="${distrib}" />
<arg value="${mvn.opts}" />
</exec>
</target>
</project>