forked from tschaub/suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
99 lines (90 loc) · 3.4 KB
/
build.xml
File metadata and controls
99 lines (90 loc) · 3.4 KB
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
97
98
99
<project name="suite" default="build">
<import file="build/common.xml"/>
<property name="modules.list" value="geoserver,geowebcache,geoexplorer,dashboard,jetty,docs,apps,sdk"/>
<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="clean" description="Cleans project">
<for list="${modules.list}" param="mod">
<sequential>
<ant dir="@{mod}" target="clean" 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">
<condition property="artifact_postfix"
value="${suite.build_rev}-${suite.build_profile}"
else="${suite.build_rev}">
<not>
<equals arg1="${suite.build_profile}" arg2="basic"/>
</not>
</condition>
<property name="bindir" value="target/${suite.build_profile}/bin"/>
<property name="webappsdir" value="${bindir}/webapps"/>
<delete dir="${bindir}"/>
<mkdir dir="${bindir}"/>
<unzip dest="${bindir}">
<fileset dir="jetty/target" includes="*.zip"/>
</unzip>
<copy todir="${webappsdir}/root">
<fileset dir="dashboard/target/${suite.build_profile}/war" includes="**/*"/>
</copy>
<unzip dest="geoserver/webapp/target/${suite.build_profile}" overwrite="true">
<fileset dir="geoserver/webapp/target/" includes="suite-geoserver-${artifact_postfix}.zip"/>
</unzip>
<unzip dest="${webappsdir}/geoserver" overwrite="true">
<fileset dir="geoserver/webapp/target/${suite.build_profile}" 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>
<copy todir="${webappsdir}/geoexplorer">
<fileset dir="geoexplorer/target/war" includes="**/*"/>
</copy>
<mkdir dir="docs/target/${suite.build_profile}"/>
<unzip dest="docs/target/${suite.build_profile}" overwrite="true">
<fileset dir="docs/target/" includes="suite-docs-${artifact_postfix}.zip"/>
</unzip>
<copy todir="${webappsdir}">
<fileset dir="docs/target/${suite.build_profile}" includes="opengeo-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/${suite.build_profile}/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>