Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1073 - (show annotations) (download) (as text)
Mon Aug 4 00:29:18 2008 UTC (15 years, 9 months ago) by shinsuke
File MIME type: application/xml
File size: 9717 byte(s)
added a target to build j2.
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.base" depends="display.logo"
120 description="--> Update Portal and Portlets without Portal Info Update">
121 <antcall target="update.portal.base"/>
122 <antcall target="update.portlets"/>
123 </target>
124
125 <target name="update.jetspeed" depends="display.logo"
126 description="--> Update Portal and Portlets">
127 <antcall target="update.portal.jetspeed"/>
128 <antcall target="update.portlets"/>
129 </target>
130
131 <target name="update.portal"
132 description="--> Update Portal">
133 <ant antfile="${portal.home}/build.xml"
134 target="update"
135 />
136 </target>
137
138 <target name="update.portlets"
139 description="--> Update Portlets">
140 <ant antfile="${portlets.home}/build.xml"
141 target="update"
142 />
143 </target>
144
145 <target name="update.portal.base"
146 description="--> Update Portal">
147 <ant antfile="${portal.home}/build.xml"
148 target="update.base"
149 />
150 </target>
151
152 <target name="update.portal.jetspeed"
153 description="--> Update Portal">
154 <ant antfile="${portal.home}/build.xml"
155 target="update.jetspeed"
156 />
157 </target>
158
159 <!-- =================================================================== -->
160 <!-- BUILD PORTAL AND PORTLETS -->
161 <!-- =================================================================== -->
162
163 <target name="build" depends="display.logo"
164 description="--> Build Portal and Portlets">
165 <antcall target="build.portal"/>
166 <antcall target="build.portlets"/>
167 </target>
168
169 <target name="build.portal"
170 description="--> Build Portal">
171 <ant antfile="${portal.home}/build.xml"
172 target="build"
173 />
174 </target>
175
176 <target name="build.portlets"
177 description="--> Build Portlets">
178 <ant antfile="${portlets.home}/build.xml"
179 target="build"
180 />
181 </target>
182
183 <target name="build.portal.components"
184 description="--> Build Portal Components">
185 <ant antfile="${portal.home}/build.xml"
186 target="build.components"
187 />
188 </target>
189
190 <!-- =================================================================== -->
191 <!-- DEPLOY PORTAL AND PORTLETS -->
192 <!-- =================================================================== -->
193
194 <target name="deploy" depends="display.logo"
195 description="--> Deploy Portal and Portlets">
196 <antcall target="deploy.portal"/>
197 </target>
198
199 <target name="deploy.portal"
200 description="--> Deploy Portal">
201 <ant antfile="${portal.home}/build.xml"
202 target="deploy"
203 />
204 </target>
205
206 <target name="deploy.jetspeed"
207 description="--> Deploy Jetspeed">
208 <ant antfile="${portal.home}/build.xml"
209 target="deploy.jetspeed"
210 />
211 </target>
212
213 <!-- =================================================================== -->
214 <!-- CREATE DISTRIBUTION -->
215 <!-- =================================================================== -->
216
217 <target name="source.distribution" depends="display.logo"
218 description="--> Create Binary Distribution">
219 <antcall target="remove"/>
220 <antcall target="checkout"/>
221 <antcall target="update"/>
222 <antcall target="clean.installer"/>
223 <antcall target="clean"/>
224 </target>
225
226 <target name="binary.distribution" depends="display.logo"
227 description="--> Create Binary Distribution">
228 <property name="build.dist" value="true" />
229 <antcall target="remove"/>
230 <antcall target="checkout"/>
231 <antcall target="update"/>
232 <antcall target="clean.installer"/>
233 <antcall target="clean"/>
234 <antcall target="build"/>
235 <antcall target="create.binary.distribution"/>
236 </target>
237
238 <target name="clean.installer" depends="display.logo"
239 description="--> Clean Portal and Portlets Distribution">
240 <ant antfile="${installer.dir}/build.xml" target="clean.installer" />
241 </target>
242
243 <target name="create.binary.distribution" depends="display.logo"
244 description="--> Create Portal and Portlets Distribution">
245 <property name="build.dist" value="true" />
246 <mkdir dir="${installer.portlets.dir}"/>
247 <ant antfile="${installer.dir}/build.xml" target="build.installer" />
248 </target>
249
250 <target name="deploy.portal.for.dist"
251 description="--> Create Portal Distribution">
252 <ant antfile="${portal.home}/build.xml"
253 target="deploy.for.dist"
254 />
255 </target>
256
257 <!-- =================================================================== -->
258 <!-- ALL BUILD -->
259 <!-- =================================================================== -->
260
261 <target name="build.all" depends="display.logo"
262 description="--> Build all Portal and Portlets">
263 <antcall target="remove"/>
264 <antcall target="checkout"/>
265 <antcall target="update"/>
266 <antcall target="clean"/>
267 <antcall target="build"/>
268 </target>
269
270 <!-- =================================================================== -->
271 <!-- ALL PORTLET BUILD -->
272 <!-- =================================================================== -->
273
274 <target name="build.all.portlets" depends="display.logo"
275 description="--> Build all Portlets">
276 <antcall target="remove.portlets"/>
277 <antcall target="checkout.portlets"/>
278 <antcall target="update.portlets"/>
279 <antcall target="clean.portlets"/>
280 <antcall target="build.portlets"/>
281 </target>
282
283 </project>
284

Properties

Name Value
svn:eol-style native

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