-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.xml
157 lines (121 loc) · 5.8 KB
/
deploy.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
155
156
157
<project name="Deploy gvSIG-EIEL" default="build-eiel-projects" basedir="../appgvSIG">
<description>
Ant file to deploy gvSIG-EIEL
</description>
<!-- overides gvSIG_projects, mandatoryProjets-->
<import file="../extEIELUtils/gvsig_default_installation_projects.xml"/>
<!-- be aware to not overwrite the appgvSIG targets -->
<import file="../appgvSIG/build.xml"/>
<!-- set global properties for this build -->
<!--
<property name="gvsig-eiel-base-win" value="gvSIG-base-win" />
<property name="gvsig-eiel-base-lin" value="gvSIG-base-lin" />
-->
<property name="gvsig-eiel-base-lin" value="gvSIG-EIEL-base-lin" />
<property name="gvsig-eiel-base-win" value="gvSIG-EIEL-base-win" />
<property name="gvsig-eiel-base-win-path" value="${user.home}/${gvsig-eiel-base-win}.zip" />
<property name="gvsig-eiel-base-lin-path" value="${user.home}/${gvsig-eiel-base-lin}.tgz" />
<!-- <loadproperties srcFile="${basedir}/../../appgvSIG/package.info"/>
<property name="installVersion" value="${gvSIG-version}.${build}"/> -->
<property name="eielNameWIN" value="gvSIG-1.12_build_1407_win32" />
<property name="eielNameLIN" value="gvSIG-1.12_build_1407_lin32" />
<!-- <property name="eielNameLIN" value="gvSIG-EIEL-1.0_RC3" /> -->
<!--
=======================
Build all eiel projects
=======================
-->
<target name="build-eiel-projects"
description="calls the default target for the gvSIG-EIEL projects">
<foreach list="${gvSIG-EIEL_projects}" trim="true" delimiter="," target="default-ant-target" param="da-target.name"/>
</target>
<target name="default-ant-target">
<property name="da-target.dir" location="../${da-target.name}"/>
<if>
<available file="${da-target.dir}" type="dir"/>
<then>
<ant dir="${da-target.dir}" inheritAll="false" />
</then>
<else>
<echo>
Skip ${da-target.name} project from Batch build
</echo>
</else>
</if>
</target>
<!--
=================
Deploy gvSIG-EIEL
=================
-->
<target name="makePortable" depends="deployTrunk, makePortableWindows, makePortableLinux">
</target>
<target name="deployTrunk">
<!-- Clean all. Delete _fwAndami/gvSIG and bin folder of all projects -->
<!--
TODO: ¿Delete ${dist}?. {Delete _fwAndami/lib and the remaining stuff in root _fwAndami?
¿Delete native libraries?
-->
<antcall target="clean-all" inheritAll="false">
<param name="gvSIG_projects" value="${gvSIG_dist}" />
<param name="mandatoryProjets" value="${gvSIG_dist}" />
</antcall>
<ant antfile="../appgvSIG/build.xml" target="buildNumber" inheritall="false" />
<!-- Build and move to _fwAndami all projects -->
<!-- TODO:
This target compile for 1.5. Maybe we should use 1.6
Maybe "make-binary-distribution" should be used. That target makes: clean-all, build-number, build-all
We should thing about debug=on and debug-level
-->
<antcall target="build-all" inheritAll="false">
<param name="gvSIG_projects" value="${gvSIG_dist}" />
<param name="mandatoryProjets" value="${gvSIG_dist}" />
</antcall>
<ant antfile="../gvsig_1_x_bindings/build.xml" inheritall="false" />
<!-- Build and move to _fwAndami eiel projects -->
<!-- TODO: With the hacked property gvSIG-projects, if eiel-projects had the batch-build target, we
don't need to use this task -->
<!-- <antcall target="build-eiel-projects" /> -->
</target>
<target name="makePortableLinux"
description="Build gvSIG and eiel extensions from trunk. Unzip portable clean portable version (with propper corporate
images, without extensions, ...) and copy all the stuff to it">
<!-- Is not really the portable version. gvSIG and lib folders, and andami.jar has bee removed -->
<!-- ant tar task does not preserve permissions -->
<copy todir="/tmp" file="${gvsig-eiel-base-lin-path}" />
<exec executable="tar" output="/dev/null" os="Linux" dir="/tmp">
<arg value="-xz"/>
<arg value="--preserve-permissions"/>
<arg value="--preserve-order"/>
<arg value="--file=${gvsig-eiel-base-lin}.tgz"/>
</exec>
<move file="/tmp/${gvsig-eiel-base-lin}" tofile="/tmp/${eielNameLIN}"/>
<!-- Move to the portable version the extensions and the libs -->
<copy todir="/tmp/${eielNameLIN}/bin/" file="${andami}/andami.jar" />
<copydir dest="/tmp/${eielNameLIN}/bin/lib" src="${andami}/lib"></copydir>
<copydir dest="/tmp/${eielNameLIN}/bin/gvSIG" src="${andami}/gvSIG"></copydir>
<!-- LAS NATIVES TAMBIÉN HABRÍA QUE RECREARLAS PERO POR ABREVIAR LAS METEMOS EN LA BASE -->
<echo>Remove the not needed theme folder</echo>
</target>
<target name="makePortableWindows"
description="Build gvSIG and eiel extensions from trunk. Unzip portable clean portable version (with propper corporate
images, without extensions, ...) and copy all the stuff to it">
<!-- Is not really the portable version. gvSIG and lib folders, and andami.jar has bee removed -->
<unzip src="${gvsig-eiel-base-win-path}" dest="/tmp"> </unzip>
<move file="/tmp/${gvsig-eiel-base-win}" tofile="/tmp/${eielNameWIN}"/>
<!-- Move to the portable version the extensions and the libs -->
<copy todir="/tmp/${eielNameWIN}/bin/" file="${andami}/andami.jar" />
<copydir dest="/tmp/${eielNameWIN}/bin/lib" src="${andami}/lib"></copydir>
<copydir dest="/tmp/${eielNameWIN}/bin/gvSIG" src="${andami}/gvSIG"></copydir>
<!-- LAS NATIVES TAMBIÉN HABRÍA QUE RECREARLAS PERO POR ABREVIAR LAS METEMOS EN LA BASE -->
<echo>Remove the not needed theme folder</echo>
</target>
<target name="test">
<exec executable="tar" output="/dev/null" os="Linux" dir="/tmp">
<arg value="-xz"/>
<arg value="--preserve-permissions"/>
<arg value="--preserve-order"/>
<arg value="--file=${gvsig-eiel-base-lin}.tgz"/>
</exec>
</target>
</project>