forked from xonixx/zlo-search
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ant_utils.xml
59 lines (47 loc) · 2.12 KB
/
ant_utils.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
<project name="Xonix" basedir=".">
<property environment="env"/>
<property name="maven.home" value="${env.M2_HOME}"/>
<!--
http://maven.apache.org/ant-tasks/examples/mvn.html
-->
<macrodef name="maven">
<attribute name="options" default=""/>
<attribute name="goal"/>
<attribute name="basedir"/>
<attribute name="resultproperty" default="maven.result"/>
<element name="args" implicit="true" optional="true"/>
<sequential>
<java classname="org.codehaus.classworlds.Launcher" fork="true"
dir="@{basedir}" resultproperty="@{resultproperty}"
failonerror="true"> <!--http://stackoverflow.com/questions/907364/how-can-i-have-my-ant-task-pass-or-fail-based-on-the-results-of-a-jar-it-runs-->
<jvmarg value="-Xmx512m"/>
<classpath>
<fileset dir="${maven.home}/boot">
<include name="*.jar"/>
</fileset>
<fileset dir="${maven.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<sysproperty key="classworlds.conf" value="${maven.home}/bin/m2.conf"/>
<sysproperty key="maven.home" value="${maven.home}"/>
<arg line="--batch-mode @{options} @{goal}"/>
</java>
</sequential>
</macrodef>
<target id="build-exploded" name="build-exploded">
<echo>Maven home: ${maven.home}</echo>
<maven basedir="xonix-utils"
goal="-DskipTests=true install"/>
<maven basedir="xmlfp"
goal="-DskipTests=true install"/>
<maven basedir="zlo_search"
goal="-DskipTests=true install"/>
<!--
http://stackoverflow.com/questions/352612/how-to-get-maven-to-run-warexploded-but-not-warwar
-->
<maven basedir="zlo_web"
goal="-DskipTests=true prepare-package war:exploded"/>
<!--<echo>@mvn_result</echo>-->
</target>
</project>