Develop and Download Open Source Software

Browse CVS Repository

Contents of /pal/pal-portal/installer/maven.xml

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


Revision 1.1 - (show annotations) (download) (as text)
Sat Mar 10 01:15:30 2007 UTC (17 years ago) by shinsuke
Branch: MAIN
CVS Tags: RELEASE-1_0_BETA4
File MIME type: application/xml
updated installer

1 <!--
2 Copyright 2004 The Apache Software Foundation
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 $Id: maven.xml 513672 2007-03-02 09:13:12Z ate $
17 -->
18 <project default="all" xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns:u="jelly:util" xmlns:ant="jelly:ant">
19
20 <goal name="j2.plugin.properties">
21 <!-- Setting up Jetspeed-2 maven plugin required properties specifically for generating the installer portal -->
22
23 <j:set var="org.apache.jetspeed.portal.home" value="${basedir}" />
24 <j:set var="org.apache.jetspeed.server.home" value="${maven.build.dir}/tomcat" />
25 <j:set var="org.apache.jetspeed.catalina.version.major" value="5.5" />
26 <j:set var="org.apache.jetspeed.server.shared" value="${maven.build.dir}/tomcat/shared/lib" />
27 <j:set var="org.apache.jetspeed.deploy.war.dir" value="${maven.build.dir}/tomcat/webapps" />
28 <j:set var="org.apache.jetspeed.services.autodeployment.server" value="localhost" />
29 <j:set var="org.apache.jetspeed.services.autodeployment.port" value="8080" />
30 <j:set var="org.apache.jetspeed.services.autodeployment.user" value="j2deployer" />
31 <j:set var="org.apache.jetspeed.services.autodeployment.password" value="j2deployer" />
32 </goal>
33
34 <goal name="buildInstaller" prereqs="j2.plugin.properties">
35 <maven:property name="build_type" defaultValue="minimal" />
36 <!--attainGoal name="clean" /-->
37
38 <mkdir dir="${basedir}/resources" />
39
40 <get usetimestamp="true" dest="${basedir}/resources/tomcat-5.5.20.zip"
41 src="http://www.bluesunrise.com/maven/tomcat/dist/tomcat-5.5.20.zip" />
42 <get usetimestamp="true" dest="${basedir}/resources/tomcat-5.5.20-compat.zip"
43 src="http://www.bluesunrise.com/maven/tomcat/dist/tomcat-5.5.20-compat.zip" />
44
45 <unzip src="${basedir}/resources/tomcat-5.5.20.zip" dest="${maven.build.dir}/tomcat" />
46 <unzip src="${basedir}/resources/tomcat-5.5.20-compat.zip" dest="${maven.build.dir}/tomcat-compat" />
47
48 <delete dir="${maven.build.dir}/tomcat/webapps" />
49
50 <copy todir="${maven.build.dir}/tomcat" overwrite="true">
51 <fileset dir="${basedir}/etc/tomcat" />
52 </copy>
53
54 <j:set var="maven.war.build.dir" value="${maven.build.dir}/tomcat/webapps"/>
55 <attainGoal name="war:webapp"/>
56
57 <attainGoal name="j2:portal.copy.webapp" />
58 <attainGoal name="j2:portal.conf.ojb" />
59 <attainGoal name="j2:portal.conf.jetspeed" />
60
61 <move todir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}">
62 <fileset dir="${maven.build.dir}/${org.apache.jetspeed.portal.artifactId}" />
63 </move>
64
65 <mkdir dir="${maven.build.dir}/database" />
66
67 <copy file="${portal.dir}/etc/sql/drop.sql" todir="${maven.build.dir}/database" />
68 <copy todir="${maven.build.dir}/database/derby">
69 <fileset dir="${portal.dir}/etc/sql/derby/schema" />
70 </copy>
71 <j:set var="org.apache.jetspeed.production.database.default.name" value="mysql" />
72 <attainGoal name="j2:portal.conf.sql" />
73 <j:choose>
74 <j:when test="${build_type=='minimal'}">
75 <copy todir="${maven.build.dir}/database">
76 <fileset dir="${maven.build.dir}/portal-sql/min" includes="j2-seed.xml" />
77 </copy>
78 </j:when>
79 <j:otherwise>
80 <copy todir="${maven.build.dir}/database">
81 <fileset dir="${maven.build.dir}/portal-sql" includes="j2-seed.xml" />
82 </copy>
83 </j:otherwise>
84 </j:choose>
85 <copy todir="${maven.build.dir}/database/mysql">
86 <fileset dir="${maven.build.dir}/portal-sql/mysql/schema" excludes="*.generation,*.map" />
87 </copy>
88 <j:set var="org.apache.jetspeed.production.database.default.name" value="mssql" />
89 <attainGoal name="j2:portal.conf.sql" />
90 <copy todir="${maven.build.dir}/database/mssql">
91 <fileset dir="${maven.build.dir}/portal-sql/mssql/schema" excludes="*.generation,*.map" />
92 </copy>
93 <j:set var="org.apache.jetspeed.production.database.default.name" value="oracle" />
94 <attainGoal name="j2:portal.conf.sql" />
95 <copy todir="${maven.build.dir}/database/oracle">
96 <fileset dir="${maven.build.dir}/portal-sql/oracle/schema" excludes="*.generation,*.map" />
97 </copy>
98 <j:set var="org.apache.jetspeed.production.database.default.name" value="db2" />
99 <attainGoal name="j2:portal.conf.sql" />
100 <copy todir="${maven.build.dir}/database/db2">
101 <fileset dir="${maven.build.dir}/portal-sql/db2/schema" excludes="*.generation,*.map" />
102 </copy>
103 <j:set var="org.apache.jetspeed.production.database.default.name" value="sapdb" />
104 <attainGoal name="j2:portal.conf.sql" />
105 <copy todir="${maven.build.dir}/database/sapdb">
106 <fileset dir="${maven.build.dir}/portal-sql/sapdb/schema" excludes="*.generation,*.map" />
107 </copy>
108 <j:set var="org.apache.jetspeed.production.database.default.name" value="postgres" />
109 <attainGoal name="j2:portal.conf.sql" />
110 <copy todir="${maven.build.dir}/database/postgres">
111 <fileset dir="${maven.build.dir}/portal-sql/postgres/schema" excludes="*.generation,*.map" />
112 </copy>
113
114 <filter token="CONTEXT" value="${org.apache.jetspeed.portal.artifactId}" />
115 <copy file="${portal.dir}/etc/conf/tomcat/jetspeed-tomcat-5.5.xml" tofile="${maven.build.dir}/database/${org.apache.jetspeed.portal.artifactId}.xml"
116 filtering="true" />
117
118 <attainGoal name="j2:copy.shared.deps" />
119 <attainGoal name="j2:pam.layoutdeploy" />
120 <attainGoal name="j2:pam.admindeploy" />
121
122 <!-- Copy Portlets -->
123 <copy todir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/deploy" overwrite="true">
124 <fileset dir="${maven.build.dir}/portlets" />
125 </copy>
126
127 <!--
128 <j:choose>
129 <j:when test="${build_type=='minimal'}">
130 <delete dir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/pages" />
131 <move todir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/pages">
132 <fileset dir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/min-pages" />
133 </move>
134 </j:when>
135 <j:otherwise>
136 <delete dir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/min-pages" />
137 <attainGoal name="j2:pam.demodeploy" />
138 <attainGoal name="j2:pam.jsfdeploy" />
139 <attainGoal name="j2:pam.rssdeploy" />
140 <attainGoal name="j2:pam.jpetstoredeploy" />
141 </j:otherwise>
142 </j:choose>
143 -->
144 <delete dir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/pages" />
145 <mkdir dir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/pages" />
146 <copy todir="${maven.build.dir}/tomcat/webapps/${org.apache.jetspeed.portal.artifactId}/WEB-INF/pages">
147 <fileset dir="${portal.psml.dir}/${portal.psml.name}" />
148 </copy>
149
150 <copy todir="${maven.build.dir}/database/lib">
151 <fileset dir="${maven.repo.local}/tyrex/jars/">
152 <include name="tyrex-1.0.1.jar" />
153 </fileset>
154 <fileset dir="${maven.repo.local}/org.apache.portals.jetspeed-2/jars/">
155 <include name="ant-tasks-${jetspeed.version}.jar" />
156 </fileset>
157 <fileset dir="${maven.build.dir}/tomcat/shared/lib/" includes="derby-*.jar"/>
158 </copy>
159
160 <j:choose>
161 <j:when test="${build_type=='minimal'}">
162 <j:set var="build_name" value="" />
163 <copy file="${basedir}/etc/ant-installer/antinstall-config.xml" todir="${maven.build.dir}"/>
164 </j:when>
165 <j:otherwise>
166 <j:set var="build_name" value="-demo" />
167 <copy file="${basedir}/etc/ant-installer/antinstall-config-demo.xml" tofile="${maven.build.dir}/antinstall-config.xml"/>
168 </j:otherwise>
169 </j:choose>
170
171 <zip file="${maven.build.dir}/portal.zip">
172 <zipfileset dir="${maven.build.dir}/tomcat" excludes="shared/lib/derby*"/>
173 </zip>
174 <zip file="${maven.build.dir}/tomcat-compat.zip">
175 <zipfileset dir="${maven.build.dir}/tomcat-compat"/>
176 </zip>
177 <zip file="${maven.build.dir}/database.zip">
178 <zipfileset dir="${maven.build.dir}/database" prefix="database" />
179 <zipfileset dir="${basedir}/etc/database" prefix="database" />
180 </zip>
181
182 <jar file="${maven.build.dir}/${dist.name.prefix}-${org.apache.jetspeed.portal.currentVersion}${build_name}-installer.jar" compress="true">
183 <manifest>
184 <attribute name="Manifest-Version" value="1.0" />
185 <attribute name="Main-Class" value="org.tp23.antinstaller.selfextract.NonExtractor" />
186 </manifest>
187 <zipgroupfileset dir="${basedir}/etc/ant-installer/lib" includes="*.jar" />
188 <zipgroupfileset dir="${maven.repo.local}/org.apache.portals.jetspeed-2/jars/" includes="ant-tasks-${jetspeed.version}.jar"/>
189 <fileset dir="${basedir}/etc/ant-installer">
190 <include name="resources/*" prefix="resources" />
191 <include name="license/*" />
192 <include name="build.xml" />
193 </fileset>
194 <fileset file="${maven.build.dir}/antinstall-config.xml"/>
195 <fileset dir="${portal.dir}">
196 <include name="LICENSE.TXT" />
197 </fileset>
198 <fileset file="${maven.build.dir}/portal.zip"/>
199 <fileset file="${maven.build.dir}/tomcat-compat.zip"/>
200 <fileset file="${maven.build.dir}/database.zip"/>
201 </jar>
202 </goal>
203
204 <goal name="build">
205 <attainGoal name="buildInstaller" />
206 </goal>
207
208 <goal name="buildDemo">
209 <j:set var="build_type" value="demo" />
210 <attainGoal name="buildInstaller" />
211 </goal>
212
213 </project>

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