forked from tschaub/suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
35 lines (29 loc) · 1.63 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
<project name="geowebcache" default="build">
<import file="../../build/common.xml"/>
<property name="gwc.flags" value=""/>
<property name="gwc.dir" value="geowebcache"/>
<property name="source.dir" value="geowebcache"/>
<target name="clean" unless="skip.gwc" description="Clean GeoWebCache">
<delete dir="target"/>
<!-- Can't run mvn clean here if we have a custom version -->
</target>
<target name="build" unless="skip.gwc" description="Build GeoWebCache">
<propertyregex property="gwc.branch" input="${gwc.version}"
regexp="(\d\.\d).*" select="\1.x"/>
<exec executable="git" dir="${gwc.dir}" failonerror="false" outputproperty="gwc.rev">
<arg line="rev-parse HEAD"/>
</exec>
<antcall target="mvn">
<param name="dir" value="${gwc.dir}/geowebcache"/>
<param name="flags" value="-DskipTests -Dgt.version=${gt.version} -Dbuild.branch=${gwc.branch} -Dbuild.commit.id=${gwc.rev} -Dspring.version=${spring.version} -Dspring.security.version=${spring.security.version} ${gwc.flags}"/>
<param name="goals" value="clean install"/>
</antcall>
<antcall target="mvn">
<param name="dir" value="${gwc.dir}/geowebcache"/>
<param name="flags" value="-DgroupId=org.geowebcache -DartifactId=geowebcache -Dgt.version=${gt.version} -Dversion=${gwc.version} -Dpackaging=war -Dfile=web/target/geowebcache.war -Dspring.version=${spring.version} -Dspring.security.version=${spring.security.version} ${gwc.flags}"/>
<param name="goals" value="install:install-file"/>
</antcall>
</target>
<target name="assemble" unless="skip.gwc" />
<target name="publish" unless="skip.gwc" />
</project>