-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (32 loc) · 1.13 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
<project name="examples" default="all" basedir=".">
<echo message="Processing ${ant.project.name}${line.separator}" level="info"/>
<condition property="isWindows">
<os family="windows"/>
</condition>
<condition property="isUnix">
<os family="unix"/>
</condition>
<target name="clean" depends="mvn_windows_clean, mvn_unix_clean"/>
<target name="rebuild" depends="mvn_windows_build, mvn_unix_build"/>
<target name="all" depends="rebuild"/>
<target name="mvn_windows_clean" if="isWindows">
<exec dir="." executable="cmd">
<arg line="/c mvn clean"/>
</exec>
</target>
<target name="mvn_unix_clean" if="isUnix">
<exec dir="." executable="sh">
<arg line="-c 'mvn clean'"/>
</exec>
</target>
<target name="mvn_windows_build" if="isWindows">
<exec dir="." executable="cmd">
<arg line="/c mvn clean install"/>
</exec>
</target>
<target name="mvn_unix_build" if="isUnix">
<exec dir="." executable="sh">
<arg line="-c 'mvn clean install'"/>
</exec>
</target>
</project>