forked from tschaub/suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
96 lines (87 loc) · 3.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<project name="suite" default="build">
<import file="build/common.xml"/>
<property name="modules.list" value="geoserver,geowebcache,composer,wpsbuilder,dashboard,docs"/>
<target name="clean" description="Cleans project">
<for list="${modules.list}" param="mod">
<sequential>
<ant dir="@{mod}" target="clean" inheritAll="false"/>
</sequential>
</for>
</target>
<target name="build" description="Builds project">
<for list="${modules.list}" param="mod">
<sequential>
<ant dir="@{mod}" target="build" inheritAll="false"/>
</sequential>
</for>
</target>
<target name="assemble" description="Assembles project artifacts">
<for list="${modules.list}" param="mod">
<sequential>
<ant dir="@{mod}" target="assemble" inheritAll="false"/>
</sequential>
</for>
</target>
<target name="assemble-bin">
<property name="bindir" value="target/bin"/>
<property name="webappsdir" value="${bindir}/webapps"/>
<delete dir="${bindir}"/>
<mkdir dir="${bindir}"/>
<mkdir dir="jetty/target"/>
<unzip dest="${bindir}">
<fileset dir="jetty/target" includes="*.zip"/>
</unzip>
<copy todir="${webappsdir}/root">
<fileset dir="dashboard/target/war" includes="**/*"/>
</copy>
<unzip dest="geoserver/webapp/target/" overwrite="true">
<fileset dir="geoserver/webapp/target/" includes="suite-geoserver.zip"/>
</unzip>
<unzip dest="${webappsdir}/geoserver" overwrite="true">
<fileset dir="geoserver/webapp/target" includes="geoserver.war">
<exclude name="META-INF/**"/>
<exclude name="data/**"/>
</fileset>
</unzip>
<copy todir="${webappsdir}/geowebcache">
<fileset dir="geowebcache/target/war" includes="**/*">
<exclude name="**/imageio-ext-*.jar"/>
</fileset>
</copy>
<!-- Once WPS Builder issues on r2d2 are resolved this should be re-added to the bin bundle
<unzip dest="${webappsdir}/wpsbuilder" overwrite="true">
<fileset dir="geoserver/externals/wps-gui/build" includes="wpsbuilder.war">
</fileset>
</unzip>
-->
<mkdir dir="docs/target"/>
<unzip dest="docs/target" overwrite="true">
<fileset dir="docs/target/" includes="suite-docs.zip"/>
</unzip>
<copy todir="${webappsdir}">
<fileset dir="docs/target" includes="suite-docs/**/*"/>
</copy>
<!-- <unzip dest="${webappsdir}/apps" src="apps/target/apps.war"/> -->
<copy todir="${bindir}/data_dir">
<fileset dir="geoserver/data_dir/target" includes="**/*">
<exclude name="*.zip"/>
</fileset>
</copy>
<antcall target="assemble-artifact">
<param name="name" value="bin"/>
<param name="dir" value="target/bin"/>
</antcall>
</target>
<target name="publish" description="Publishes project artifacts">
<for list="${modules.list}" param="mod">
<sequential>
<ant dir="@{mod}" target="publish" inheritAll="false"/>
</sequential>
</for>
</target>
<target name="publish-bin">
<antcall target="publish-artifact">
<param name="name" value="bin"/>
</antcall>
</target>
</project>