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
62 lines (52 loc) · 2.06 KB
/
Copy pathbuild.xml
File metadata and controls
62 lines (52 loc) · 2.06 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
<project name="geoserver" default="build">
<import file="../../build/common.xml"/>
<property name="data.dir" value="../data_dir/target"/>
<property name="war.dir" value="target/geoserver"/>
<property name="war.file" value="${war.dir}.war"/>
<target name="build" depends="init,build-server" description="Builds project" />
<target name="build-server" description="builds and installs server">
<antcall target="mvn">
<param name="goals" value="install"/>
<param name="flags" value="-DskipTests"/>
</antcall>
</target>
<target name="clean" depends="destroy" />
<target name="assemble">
<delete dir="${war.dir}/data"/>
<delete file="${war.file}"/>
<jar destfile="${war.file}">
<fileset dir="${war.dir}">
<!-- Exclude these jars which contain a security vulnerability. We are still pulling in the fixed / hacked versions from gs-main-->
<exclude name="**/lib/commons-beanutils-1.7.0.jar"/>
<exclude name="**/lib/org.restlet-1.0.8.jar"/>
</fileset>
</jar>
<antcall target="assemble-artifact">
<param name="includes" value="*.war"/>
</antcall>
</target>
<target name="publish">
<antcall target="publish-artifact"/>
</target>
<target name="serve" description="Runs GeoServer">
<antcall target="mvn">
<param name="goals" value="dependency:copy-dependencies"/>
</antcall>
<condition property="jetty.port" value="${jetty.port}" else="8080">
<isset property="jetty.port"/>
</condition>
<condition property="geoserver.data_dir" value="${GEOSERVER_DATA_DIR}"
else="data">
<isset property="GEOSERVER_DATA_DIR"/>
</condition>
<java classname="org.geoserver.test.Start" fork="true">
<sysproperty key="jetty.port" value="${jetty.port}"/>
<sysproperty key="GEOSERVER_DATA_DIR" value="${geoserver.data_dir}"/>
<classpath>
<pathelement path="target/classes"/>
<pathelement path="target/test-classes"/>
<fileset dir="target/dependency" includes="*.jar"/>
</classpath>
</java>
</target>
</project>