Develop and Download Open Source Software

Browse CVS Repository

Contents of /pal/pal-portal/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.13 - (show annotations) (download) (as text)
Sun Mar 11 21:33:30 2007 UTC (17 years ago) by shinsuke
Branch: MAIN
CVS Tags: RELEASE-1_0_BETA4
Changes since 1.12: +2 -2 lines
File MIME type: application/xml
modified build order for distribution

1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <project name="portal" default="all" basedir=".">
4
5 <property file="override.properties" />
6 <property file="build.properties" />
7
8 <taskdef resource="net/sf/antcontrib/antlib.xml">
9 <classpath>
10 <pathelement location="${basedir}/lib/ant-contrib-1.0b2.jar" />
11 </classpath>
12 </taskdef>
13
14 <!-- =================================================================== -->
15 <!-- DISPLAY LOGO -->
16 <!-- =================================================================== -->
17
18 <target name="display.logo"
19 description="--> Display Logo">
20 <echo>
21 __________ ___ ____
22 | \ / \ | |
23 | +----\ \ / _ \ | |
24 | | | | / / \ \ | |
25 | +----/ / / / \ \ | | ~ PAL Portal Server ~
26 | / / /_____\ \ | | ver. ${portal.version}
27 | +-----/ / \ | |
28 | | / ___________ \ | | Produced by
29 | | / / \ \ | |____________ PAL Project
30 | | / / \ \ | |
31 |__| /__/ \__\ |______________|
32 </echo>
33 </target>
34
35 <!-- =================================================================== -->
36 <!-- REMOVE PORTAL AND PORTLETS -->
37 <!-- =================================================================== -->
38
39 <target name="remove" depends="display.logo"
40 description="--> Remove Portal and Portlets">
41 <antcall target="remove.portal"/>
42 <delete dir="${portal.build.dir}"/>
43 <antcall target="remove.portlets"/>
44 <delete dir="${portlets.build.dir}"/>
45 </target>
46
47 <target name="remove.portal"
48 description="--> Remove Portal">
49 <ant antfile="${portal.home}/build.xml"
50 target="remove"
51 />
52 </target>
53
54 <target name="remove.portlets"
55 description="--> Remove Portlets">
56 <ant antfile="${portlets.home}/build.xml"
57 target="remove"
58 />
59 </target>
60
61 <!-- =================================================================== -->
62 <!-- CLEAN PORTAL AND PORTLETS -->
63 <!-- =================================================================== -->
64
65 <target name="clean" depends="display.logo"
66 description="--> Clean Portal and Portlets">
67 <antcall target="clean.portal"/>
68 <antcall target="clean.portlets"/>
69 </target>
70
71 <target name="clean.portal"
72 description="--> Clean Portal">
73 <ant antfile="${portal.home}/build.xml"
74 target="clean"
75 />
76 </target>
77
78 <target name="clean.portlets"
79 description="--> Clean Portlets">
80 <ant antfile="${portlets.home}/build.xml"
81 target="clean"
82 />
83 </target>
84
85 <!-- =================================================================== -->
86 <!-- CHECKOUT PORTAL AND PORTLETS -->
87 <!-- =================================================================== -->
88
89 <target name="checkout" depends="display.logo"
90 description="--> Checkout Portal and Portlets">
91 <antcall target="checkout.portal"/>
92 <antcall target="checkout.portlets"/>
93 </target>
94
95 <target name="checkout.portal"
96 description="--> Checkout Portal">
97 <ant antfile="${portal.home}/build.xml"
98 target="checkout"
99 />
100 </target>
101
102 <target name="checkout.portlets"
103 description="--> Checkout Portlets">
104 <ant antfile="${portlets.home}/build.xml"
105 target="checkout"
106 />
107 </target>
108
109 <!-- =================================================================== -->
110 <!-- UPDATE PORTAL AND PORTLETS -->
111 <!-- =================================================================== -->
112
113 <target name="update" depends="display.logo"
114 description="--> Update Portal and Portlets">
115 <antcall target="update.portal"/>
116 <antcall target="update.portlets"/>
117 </target>
118
119 <target name="update.portal"
120 description="--> Update Portal">
121 <ant antfile="${portal.home}/build.xml"
122 target="update"
123 />
124 </target>
125
126 <target name="update.portlets"
127 description="--> Update Portlets">
128 <ant antfile="${portlets.home}/build.xml"
129 target="update"
130 />
131 </target>
132
133 <target name="update.base" depends="display.logo"
134 description="--> Update Portal and Portlets without Portal Info Update">
135 <antcall target="update.portal.base"/>
136 <antcall target="update.portlets"/>
137 </target>
138
139 <target name="update.portal.base"
140 description="--> Update Portal">
141 <ant antfile="${portal.home}/build.xml"
142 target="update.base"
143 />
144 </target>
145
146 <!-- =================================================================== -->
147 <!-- BUILD PORTAL AND PORTLETS -->
148 <!-- =================================================================== -->
149
150 <target name="build" depends="display.logo"
151 description="--> Build Portal and Portlets">
152 <antcall target="build.portal"/>
153 <antcall target="build.portlets"/>
154 </target>
155
156 <target name="build.portal"
157 description="--> Build Portal">
158 <ant antfile="${portal.home}/build.xml"
159 target="build"
160 />
161 </target>
162
163 <target name="build.portlets"
164 description="--> Build Portlets">
165 <ant antfile="${portlets.home}/build.xml"
166 target="build"
167 />
168 </target>
169
170 <!-- =================================================================== -->
171 <!-- DEPLOY PORTAL AND PORTLETS -->
172 <!-- =================================================================== -->
173
174 <target name="deploy" depends="display.logo"
175 description="--> Deploy Portal and Portlets">
176 <antcall target="deploy.portal"/>
177 <antcall target="deploy.portlets"/>
178 </target>
179
180 <target name="deploy.portal"
181 description="--> Deploy Portal">
182 <ant antfile="${portal.home}/build.xml"
183 target="deploy"
184 />
185 </target>
186
187 <target name="deploy.portlets"
188 description="--> Deploy Portlets">
189 <ant antfile="${portlets.home}/build.xml"
190 target="deploy"
191 />
192 </target>
193
194 <!-- =================================================================== -->
195 <!-- CREATE DISTRIBUTION -->
196 <!-- =================================================================== -->
197
198 <target name="source.distribution" depends="display.logo"
199 description="--> Create Binary Distribution">
200 <antcall target="remove"/>
201 <antcall target="checkout"/>
202 <antcall target="update"/>
203 <antcall target="clean.installer"/>
204 <antcall target="clean"/>
205 </target>
206
207 <target name="binary.distribution" depends="display.logo"
208 description="--> Create Binary Distribution">
209 <property name="build.dist" value="true" />
210 <antcall target="remove"/>
211 <antcall target="checkout"/>
212 <antcall target="update"/>
213 <antcall target="clean.installer"/>
214 <antcall target="clean"/>
215 <antcall target="build"/>
216 <antcall target="create.binary.distribution"/>
217 </target>
218
219 <target name="clean.installer" depends="display.logo"
220 description="--> Clean Portal and Portlets Distribution">
221 <ant antfile="${installer.dir}/build.xml" target="clean.installer" />
222 </target>
223
224 <target name="create.binary.distribution" depends="display.logo"
225 description="--> Create Portal and Portlets Distribution">
226 <property name="build.dist" value="true" />
227 <mkdir dir="${installer.portlets.dir}"/>
228 <antcall target="deploy.portlets.for.dist"/>
229 <ant antfile="${installer.dir}/build.xml" target="build.installer" />
230 </target>
231
232 <target name="deploy.portal.for.dist"
233 description="--> Create Portal Distribution">
234 <ant antfile="${portal.home}/build.xml"
235 target="deploy.for.dist"
236 />
237 </target>
238
239 <target name="deploy.portlets.for.dist"
240 description="--> Create Portlets Distribution">
241 <ant antfile="${portlets.home}/build.xml"
242 target="deploy.for.dist"
243 />
244 </target>
245
246 <!-- =================================================================== -->
247 <!-- ALL BUILD -->
248 <!-- =================================================================== -->
249
250 <target name="build.all" depends="display.logo"
251 description="--> Build all Portal and Portlets">
252 <antcall target="remove"/>
253 <antcall target="checkout"/>
254 <antcall target="update"/>
255 <antcall target="clean"/>
256 <antcall target="build"/>
257 </target>
258
259 <!-- =================================================================== -->
260 <!-- ALL PORTLET BUILD -->
261 <!-- =================================================================== -->
262
263 <target name="build.all.portlets" depends="display.logo"
264 description="--> Build all Portlets">
265 <antcall target="remove.portlets"/>
266 <antcall target="checkout.portlets"/>
267 <antcall target="update.portlets"/>
268 <antcall target="clean.portlets"/>
269 <antcall target="build.portlets"/>
270 </target>
271
272 </project>
273

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26