forked from lsfusion/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
66 lines (53 loc) · 1.97 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
<?xml version="1.0"?>
<project name="lsFusion Build Utils">
<condition property="isWindows">
<os family="windows"/>
</condition>
<condition property="isUnix">
<os family="unix"/>
</condition>
<target name="recursiveCompile_win" if="isWindows">
<property name="mvn.executable" value="cmd"/>
<property name="mvn.args" value="/c"/>
</target>
<target name="recursiveCompile_unix" if="isUnix">
<property name="mvn.executable" value="/bin/sh"/>
<property name="mvn.args" value="-c"/>
</target>
<target name="recursiveCompile" depends="recursiveCompile_win, recursiveCompile_unix">
<exec dir="${basedir}" executable="${mvn.executable}">
<arg line="${mvn.args} 'mvn --also-make --projects :${artifactId} compile'"/>
</exec>
</target>
<!-- ============================================================================= -->
<target name="base-recursiveCompile">
<antcall target="recursiveCompile">
<param name="artifactId" value="base"/>
</antcall>
</target>
<target name="logics-recursiveCompile">
<antcall target="recursiveCompile">
<param name="artifactId" value="logics"/>
</antcall>
</target>
<target name="api-recursiveCompile">
<antcall target="recursiveCompile">
<param name="artifactId" value="api"/>
</antcall>
</target>
<target name="desktop-client-recursiveCompile">
<antcall target="recursiveCompile">
<param name="artifactId" value="desktop-client"/>
</antcall>
</target>
<target name="server-recursiveCompile">
<antcall target="recursiveCompile">
<param name="artifactId" value="server"/>
</antcall>
</target>
<target name="web-client-recursiveCompile">
<antcall target="recursiveCompile">
<param name="artifactId" value="web-client"/>
</antcall>
</target>
</project>