-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathbuild.xml
154 lines (137 loc) · 6.15 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="UTF-8"?>
<project name="assembly" default="build" basedir=".">
<property name="data" value="http://data.opengeo.org/suite"/>
<property name="db.ver" value="${dashboard.version}"/>
<target name="build">
<tstamp/>
<get src="${data}/suite-jre-6-win.zip" dest="jre-win.zip" usetimestamp="yes"/>
<delete dir="jre-win"/>
<unzip src="jre-win.zip" dest="jre-win" overwrite="false"/>
<get src="${data}/suite-gdal-1.4.5-win.zip" dest="gdal-win.zip" usetimestamp="yes"/>
<delete dir="gdal-win"/>
<unzip src="gdal-win.zip" dest="gdal-win" overwrite="false"/>
<!-- Windows PostgreSQL / PostGIS -->
<!-- http://downloads.enterprisedb.com/postgresql/postgresql-8.4.9-1-windows-binaries.zip -->
<!-- Windows assembly combines PostGIS binaries with PgSQL binaries at assembly time -->
<get src="${data}/postgresql-8.4.9-1-windows-binaries.zip" dest="postgres-win.zip" usetimestamp="yes" />
<get src="${data}/pgsql-postgis-1.5.3-1-win.zip" dest="postgis-win.zip" usetimestamp="yes"/>
<delete dir="postgres-win"/>
<unzip src="postgres-win.zip" dest="postgres-win" overwrite="false"/>
<unzip src="postgis-win.zip" dest="postgres-win/pgsql" overwrite="true"/>
<!-- MacOSX PostgreSQL / PostGIS -->
<!-- OSX assembly uses PgSQL/PostGIS precombined during the build process -->
<get src="${data}/pgsql-8.4.3-postgis-1.5.1-4-osx.zip" dest="postgres-osx.zip" usetimestamp="yes"/>
<delete dir="postgres-osx"/>
<mkdir dir="postgres-osx"/>
<unzip src="postgres-osx.zip" dest="postgres-osx/pgsql" overwrite="true"/>
<antcall target="dashboard-osx"/>
<antcall target="dashboard-win32"/>
<antcall target="dashboard-lin32"/>
<tstamp/>
<antcall target="dashboard-lin64"/>
<!-- postgis medford data -->
<delete dir="pgdata"/>
<mkdir dir="pgdata"/>
<get src="${data}/medford_taxlots.zip" dest="medford_taxlots.zip" usetimestamp="yes"/>
<unzip src="medford_taxlots.zip" dest="pgdata"/>
<!-- geoserver jboss war -->
<antcall target="geoserver-war-jboss"/>
</target>
<target name="dashboard-osx">
<!-- Dashboard Mac OSX -->
<get src="${data}/dashboard-${db.ver}-osx.zip" dest="dashboard-${db.ver}-osx.zip" usetimestamp="yes"/>
<delete dir="dashboard-${db.ver}-osx"/>
<mkdir dir="dashboard-${db.ver}-osx"/>
<exec executable="unzip" failonerror="true">
<arg value="dashboard-${db.ver}-osx.zip"/>
</exec>
<!--copy todir="dashboard-${db.ver}-osx/OpenGeo Dashboard.app/Contents/Resources">
<fileset dir="../dashboard/target/resources">
<exclude name="**/.svn/"/>
<exclude name="**/.svn*"/>
</fileset>
</copy>
<copy todir="dashboard-${db.ver}-osx/OpenGeo Dashboard.app/Contents">
<fileset dir="../dashboard/OpenGeo Dashboard"
includes="CHANGELOG.txt,LICENSE.txt,manifest,tiapp.xml,timanifest"/>
</copy-->
</target>
<target name="dashboard-win32">
<!-- Dashboard Win32 -->
<get src="${data}/dashboard-${db.ver}-win32.zip" dest="dashboard-${db.ver}-win32.zip" usetimestamp="yes"/>
<delete dir="dashboard-${db.ver}-win32"/>
<mkdir dir="dashboard-${db.ver}-win32"/>
<exec executable="unzip" failonerror="true">
<arg value="dashboard-${db.ver}-win32.zip"/>
</exec>
<!--copy todir="dashboard-${db.ver}-win32/OpenGeo Dashboard/Resources">
<fileset dir="../dashboard/target/resources">
<exclude name="**/.svn/"/>
<exclude name="**/.svn*"/>
</fileset>
</copy>
<copy todir="dashboard-${db.ver}-win32/OpenGeo Dashboard/">
<fileset dir="../dashboard/OpenGeo Dashboard"
includes="CHANGELOG.txt,LICENSE.txt,manifest,tiapp.xml,timanifest"/>
</copy-->
</target>
<target name="dashboard-lin32">
<!-- Dashboard Linux32 -->
<get src="${data}/dashboard-${db.ver}-lin32.zip" dest="dashboard-${db.ver}-lin32.zip" usetimestamp="yes"/>
<delete dir="dashboard-${db.ver}-lin32"/>
<exec executable="unzip" failonerror="true">
<arg value="dashboard-${db.ver}-lin32.zip"/>
</exec>
<!--copy todir="dashboard-${db.ver}-lin32/OpenGeo Dashboard/Resources">
<fileset dir="../dashboard/target/resources">
<exclude name="**/.svn/"/>
<exclude name="**/.svn*"/>
</fileset>
</copy>
<copy todir="dashboard-${db.ver}-lin32/OpenGeo Dashboard/">
<fileset dir="../dashboard/OpenGeo Dashboard"
includes="CHANGELOG.txt,LICENSE.txt,manifest,tiapp.xml,timanifest"/>
</copy-->
</target>
<target name="dashboard-lin64">
<!-- Dashboard Linux64 -->
<get src="${data}/dashboard-${db.ver}-lin64.zip" dest="dashboard-${db.ver}-lin64.zip" usetimestamp="yes"/>
<delete dir="dashboard-${db.ver}-lin64"/>
<exec executable="unzip" failonerror="true">
<arg value="dashboard-${db.ver}-lin64.zip"/>
</exec>
<!--copy todir="dashboard-${db.ver}-lin64/OpenGeo Dashboard/Resources">
<fileset dir="../dashboard/target/resources">
<exclude name="**/.svn/"/>
<exclude name="**/.svn*"/>
</fileset>
</copy>
<copy todir="dashboard-${db.ver}-lin64/OpenGeo Dashboard/">
<fileset dir="../dashboard/OpenGeo Dashboard"
includes="CHANGELOG.txt,LICENSE.txt,manifest,tiapp.xml,timanifest"/>
</copy-->
</target>
<target name="opengeo-docs-war">
<mkdir dir="target/opengeo-docs"/>
<copy todir="target/opengeo-docs">
<fileset dir="../docs">
<include name="**/target/html/**"/>
</fileset>
<mapper type="regexp" from="^(.*)/target/html/(.*)$$" to="\1/\2"/>
</copy>
<copy todir="target/opengeo-docs" file="../docs/index.html"/>
<jar destfile="target/opengeo-docs.war">
<fileset dir="target/opengeo-docs"/>
</jar>
</target>
<target name="geoserver-war-jboss">
<mkdir dir="target"/>
<jar destfile="target/geoserver-jboss.war">
<fileset dir="../geoserver/web/app/target/geoserver">
<exclude name="**/lib/xalan*.jar"/>
<exclude name="**/lib/xerces*.jar"/>
</fileset>
<fileset dir="geoserver" includes="WEB-INF/jboss-classloading.xml"/>
</jar>
</target>
</project>