portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r513124 [2/2] - in /portals/jetspeed-2/trunk/installer: ./ etc/ etc/ant-installer/ etc/ant-installer/lib/ etc/ant-installer/license/ etc/ant-installer/resources/ etc/tomcat/ etc/tomcat/bin/ etc/tomcat/conf/ etc/tomcat/logs/ etc/tomcat/webap...
Date Thu, 01 Mar 2007 03:48:52 GMT
Added: portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/WEB-INF/web.xml?view=auto&rev=513124
==============================================================================
--- portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/WEB-INF/web.xml (added)
+++ portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/WEB-INF/web.xml Wed Feb 28
19:48:50 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<!DOCTYPE web-app
+  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+  "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+  <display-name>Jetspeed-2 Enterprise Portal</display-name>	
+</web-app>

Propchange: portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/index.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/index.jsp?view=auto&rev=513124
==============================================================================
--- portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/index.jsp (added)
+++ portals/jetspeed-2/trunk/installer/etc/tomcat/webapps/ROOT/index.jsp Wed Feb 28 19:48:50
2007
@@ -0,0 +1,16 @@
+<%--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--%>
+<% response.sendRedirect("/jetspeed"); %>

Added: portals/jetspeed-2/trunk/installer/maven.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/installer/maven.xml?view=auto&rev=513124
==============================================================================
--- portals/jetspeed-2/trunk/installer/maven.xml (added)
+++ portals/jetspeed-2/trunk/installer/maven.xml Wed Feb 28 19:48:50 2007
@@ -0,0 +1,195 @@
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id$
+-->
+<project default="all"
+         xmlns:j="jelly:core"
+         xmlns:maven="jelly:maven"
+         xmlns:u="jelly:util"
+         xmlns:ant="jelly:ant">
+         
+  <goal name="j2.plugin.properties">
+    <!-- Setting up Jetspeed-2 maven plugin required properties specifically for generating
the installer portal -->
+    
+    <j:set var="org.apache.jetspeed.portal.home" value="${basedir}"/>
+    <j:set var="org.apache.jetspeed.server.home" value="${maven.build.dir}/tomcat"/>
+    <j:set var="org.apache.jetspeed.catalina.version.major" value="5.5"/>
+    <j:set var="org.apache.jetspeed.server.shared" value="${maven.build.dir}/tomcat/shared/lib"/>
+    <j:set var="org.apache.jetspeed.deploy.war.dir" value="${maven.build.dir}/tomcat/webapps"/>
+    <j:set var="org.apache.jetspeed.services.autodeployment.server" value="localhost"/>
+    <j:set var="org.apache.jetspeed.services.autodeployment.port" value="8080"/>
+    <j:set var="org.apache.jetspeed.services.autodeployment.user" value="j2deployer"/>
+    <j:set var="org.apache.jetspeed.services.autodeployment.password" value="j2deployer"/>
+  </goal>
+  
+  <goal name="buildInstaller" prereqs="j2.plugin.properties">
+    <maven:property name="build_type" defaultValue="minimal"/>
+    <attainGoal name="clean"/>
+    
+     <mkdir dir="${basedir}/resources"/>
+		<get usetimestamp="true" dest="${basedir}/resources/tomcat-5.5.20.zip" src="http://www.bluesunrise.com/maven/tomcat/dist/tomcat-5.5.20.zip"
/>
+		<get usetimestamp="true" dest="${basedir}/resources/tomcat-5.5.20-compat.zip" src="http://www.bluesunrise.com/maven/tomcat/dist/tomcat-5.5.20-compat.zip"
/>
+
+		<unzip src="${basedir}/resources/tomcat-5.5.20.zip" dest="${maven.build.dir}/tomcat"
/>
+		<unzip src="${basedir}/resources/tomcat-5.5.20-compat.zip" dest="${maven.build.dir}/tomcat-compat"
/>	
+		
+		<delete dir="${maven.build.dir}/tomcat/webapps"/>
+		
+		<copy todir="${maven.build.dir}/tomcat" overwrite="true">
+		  <fileset dir="${basedir}/etc/tomcat"/>
+		</copy>
+		
+		<mkdir dir="${maven.build.dir}/tomcat/webapps/jetspeed"/>
+		
+    <attainGoal name="j2:portal.copy.webapp"/>
+    <attainGoal name="j2:portal.conf.ojb"/>
+    <attainGoal name="j2:portal.conf.jetspeed"/>
+   
+    <move todir="${maven.build.dir}/tomcat/webapps/jetspeed">
+      <fileset dir="${maven.build.dir}/jetspeed"/>
+    </move>
+    
+    <mkdir dir="${maven.build.dir}/database" />
+    <copy todir="${maven.build.dir}/database/lib">
+			<fileset dir="${maven.repo.local}/tyrex/jars/">
+				<include name="tyrex-1.0.1.jar" />
+			</fileset>
+			<fileset dir="${maven.repo.local}/${org.apache.jetspeed.portal.groupId}/jars/">
+				<include name="ant-tasks-${jetspeed.version}.jar" />
+			</fileset>
+    </copy>
+
+    <copy file="${basedir}/../etc/sql/drop.sql" todir="${maven.build.dir}/database"/>
+    <copy todir="${maven.build.dir}/database/derby">
+        <fileset dir="${basedir}/../etc/sql/derby/schema"/>
+     </copy>
+     <j:set var="org.apache.jetspeed.production.database.default.name" value="mysql"/>
+    <attainGoal name="j2:portal.conf.sql"/>
+    <j:choose>
+      <j:when test="${build_type=='minimal'}">
+        <copy todir="${maven.build.dir}/database" >
+          <fileset dir="${maven.build.dir}/portal-sql/min" includes="j2-seed.xml"/>
+       </copy>
+     </j:when>
+     <j:otherwise>
+        <copy todir="${maven.build.dir}/database" >
+          <fileset dir="${maven.build.dir}/portal-sql" includes="j2-seed.xml"/>
+       </copy>
+     </j:otherwise>
+    </j:choose> 
+    <copy todir="${maven.build.dir}/database/mysql" >
+        <fileset dir="${maven.build.dir}/portal-sql/mysql/schema" excludes="*.generation,*.map"/>
+     </copy> 
+     <j:set var="org.apache.jetspeed.production.database.default.name" value="mssql"/>
+    <attainGoal name="j2:portal.conf.sql"/>  
+    <copy todir="${maven.build.dir}/database/mssql" >
+        <fileset dir="${maven.build.dir}/portal-sql/mssql/schema" excludes="*.generation,*.map"/>
+     </copy> 
+     <j:set var="org.apache.jetspeed.production.database.default.name" value="oracle"/>
+    <attainGoal name="j2:portal.conf.sql"/>  
+    <copy todir="${maven.build.dir}/database/oracle" >
+        <fileset dir="${maven.build.dir}/portal-sql/oracle/schema" excludes="*.generation,*.map"/>
+     </copy> 
+     <j:set var="org.apache.jetspeed.production.database.default.name" value="db2"/>
+    <attainGoal name="j2:portal.conf.sql"/>  
+    <copy todir="${maven.build.dir}/database/db2" >
+        <fileset dir="${maven.build.dir}/portal-sql/db2/schema" excludes="*.generation,*.map"/>
+     </copy> 
+     <j:set var="org.apache.jetspeed.production.database.default.name" value="sapdb"/>
+    <attainGoal name="j2:portal.conf.sql"/>  
+    <copy todir="${maven.build.dir}/database/sapdb" >
+        <fileset dir="${maven.build.dir}/portal-sql/sapdb/schema" excludes="*.generation,*.map"/>
+     </copy> 
+     <j:set var="org.apache.jetspeed.production.database.default.name" value="postgres"/>
+    <attainGoal name="j2:portal.conf.sql"/>  
+    <copy todir="${maven.build.dir}/database/postgres" >
+        <fileset dir="${maven.build.dir}/portal-sql/postgres/schema" excludes="*.generation,*.map"/>
+     </copy> 
+
+     <filter token="CONTEXT" value="jetspeed"/>
+     <copy file="${basedir}/../etc/conf/tomcat/jetspeed-tomcat-5.5.xml" tofile="${maven.build.dir}/database/jetspeed.xml"
filtering="true"/>
+
+      <attainGoal name="j2:copy.shared.deps"/>
+      <attainGoal name="j2:pam.layoutdeploy"/>
+      <attainGoal name="j2:pam.admindeploy"/>
+      
+    <j:choose>
+      <j:when test="${build_type=='minimal'}">
+	      <delete dir="${maven.build.dir}/tomcat/webapps/jetspeed/WEB-INF/pages"/>
+	      <move todir="${maven.build.dir}/tomcat/webapps/jetspeed/WEB-INF/pages">
+	        <fileset dir="${maven.build.dir}/tomcat/webapps/jetspeed/WEB-INF/min-pages"/>
+	      </move>
+      </j:when>
+      <j:otherwise>
+	      <delete dir="${maven.build.dir}/tomcat/webapps/jetspeed/WEB-INF/min-pages"/>
+        <attainGoal name="j2:pam.demodeploy"/>
+        <attainGoal name="j2:pam.jsfdeploy"/>
+        <attainGoal name="j2:pam.rssdeploy"/>
+        <attainGoal name="j2:pam.jpetstoredeploy"/>
+      </j:otherwise>
+    </j:choose>
+      
+		  <zip file="${maven.build.dir}/installpack.zip">
+  			<zipfileset dir="${maven.build.dir}/tomcat" prefix="portal" excludes="shared/lib/derby*"/>
+  			<zipfileset dir="${maven.build.dir}/tomcat-compat" prefix="jdk14"/>
+  			<zipfileset dir="${maven.build.dir}/database" prefix="database"/>
+      </zip>
+      
+      <j:choose>
+         <j:when test="${build_type=='minimal'}">
+           <j:set var="build_name" value=""/>
+         </j:when>
+        <j:otherwise>
+           <j:set var="build_name" value="-demo"/>
+        </j:otherwise>
+      </j:choose>
+      
+		  <jar file="${maven.build.dir}/jetspeed-${jetspeed.version}${build_name}-installer.jar"
compress="true">
+			<manifest>
+				<attribute name="Manifest-Version" value="1.0" />
+				<attribute name="Main-Class" value="org.tp23.antinstaller.selfextract.SelfExtractor"
/>
+				<attribute name="Look-And-Feel" value="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
/>
+			</manifest>
+			<zipgroupfileset dir="${basedir}/etc/ant-installer/lib" includes="*.jar" />
+			<fileset dir="${basedir}/etc/ant-installer">
+				<include name="resources/*" prefix="resources"/>
+				<include name="license/*"/>
+				<include name="build.xml"/>
+				<include name="$antinstall-config{build_name}.xml"/>
+			</fileset>
+			<fileset dir="${maven.build.dir}/tomcat/shared/lib">
+				<include name="derby*"/>
+			</fileset>
+			<fileset dir="${maven.build.dir}">
+				<include name="installpack.zip"/>
+			</fileset>
+			<fileset dir="${basedir}/..">
+				<include name="LICENSE.TXT"/>
+			</fileset>
+		</jar>
+      
+  </goal>
+  
+  <goal name="build">
+    <attainGoal name="buildInstaller"/>
+  </goal>
+
+  <goal name="buildDemo">
+    <j:set var="build_type" value="demo"/>
+    <attainGoal name="buildInstaller"/>
+  </goal>
+
+</project>

Propchange: portals/jetspeed-2/trunk/installer/maven.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/trunk/installer/maven.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: portals/jetspeed-2/trunk/installer/project.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/installer/project.xml?view=auto&rev=513124
==============================================================================
--- portals/jetspeed-2/trunk/installer/project.xml (added)
+++ portals/jetspeed-2/trunk/installer/project.xml Wed Feb 28 19:48:50 2007
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id$
+-->
+<project>
+  <extend>${basedir}/../full-portal.xml</extend>
+  <name>Jetspeed 2 Enterprise Portal</name>
+  <groupId>org.apache.portals.jetspeed-2</groupId>
+  <artifactId>jetspeed</artifactId>
+  <currentVersion>${jetspeed.version}</currentVersion>
+  
+  <build>
+    <resources>
+      <resource>
+        <directory>${basedir}</directory>
+        <targetPath>../../${pom.artifactId}/META-INF</targetPath>
+        <includes>
+          <include>LICENSE.TXT</include>
+        </includes>
+      </resource>
+    </resources>
+  </build>
+  
+</project>

Propchange: portals/jetspeed-2/trunk/installer/project.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/trunk/installer/project.xml
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message