portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r729327 [1/2] - in /portals/jetspeed-2/portal/trunk: ./ jetspeed-ant-tasks/ jetspeed-installer/ jetspeed-installer/etc/ant-installer/ jetspeed-installer/etc/database/ maven/jetspeed-mvn-maven-plugin/src/main/java/org/apache/jetspeed/maven/p...
Date Wed, 24 Dec 2008 16:05:34 GMT
Author: ate
Date: Wed Dec 24 08:05:34 2008
New Revision: 729327

URL: http://svn.apache.org/viewvc?rev=729327&view=rev
Log:
JS2-911: New installer build configuration for Jetspeed 2.2
See: http://issues.apache.org/jira/browse/JS2-911
Contributed by Jeroen Hoffman, great work Jeroen! 

Added:
    portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml   (contents, props changed)
      - copied, changed from r729295, portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml
    portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml   (contents, props changed)
      - copied, changed from r729295, portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-demo.xml
    portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-tomcat-portal-pom.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/pom.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/zip-database-descriptor.xml   (with props)
    portals/jetspeed-2/portal/trunk/jetspeed-installer/zip-tomcat-portal-descriptor.xml   (with props)
Removed:
    portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-demo.xml
Modified:
    portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
    portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/build.xml
    portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/database.properties.template
    portals/jetspeed-2/portal/trunk/maven/jetspeed-mvn-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/MvnMojo.java
    portals/jetspeed-2/portal/trunk/pom.xml

Added: portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml?rev=729327&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml (added)
+++ portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml Wed Dec 24 08:05:34 2008
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <prerequisites>
+    <maven>2.0.9</maven>
+  </prerequisites>
+
+  <artifactId>jetspeed-ant-tasks</artifactId>
+  <name>Jetspeed-2 Ant Tasks</name>
+  <description>Ant Tasks Required for the Jetspeed-2 Product Build.</description>
+  <parent>
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <artifactId>jetspeed-2</artifactId>
+    <version>2.2-SNAPSHOT</version>
+  </parent>
+  <packaging>jar</packaging>
+
+  <dependencies>
+    
+    <!-- Provided Dependencies -->
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    
+  </dependencies>
+
+</project>

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-ant-tasks/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt?rev=729327&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt (added)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt Wed Dec 24 08:05:34 2008
@@ -0,0 +1,16 @@
+
+There are two Jetspeed installers that can be built from command line: a portal
+with minimal functionality and a demo portal with more portlet applications.
+
+To build either of these installers, the Jetspeed Maven plugin for Maven-2 
+should be used as follows:  
+
+> mvn jetspeed:mvn -Dtarget=installer-minimal
+
+  or	
+
+> mvn jetspeed:mvn -Dtarget=installer-demo
+
+
+NB: the target directory will be cleaned so you cannot build both installers at the same time
+without saveguarding the first build target.

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/BUILD.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml (from r729295, portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml)
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml?p2=portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml&p1=portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml&r1=729295&r2=729327&rev=729327&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml (original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml Wed Dec 24 08:05:34 2008
@@ -24,7 +24,7 @@
 -->
 
 <installer ui="swing,text" verbose="false" lookAndFeel="jgoodies" name="Jetspeed Enterprise Portal 2.2-SNAPSHOT Installer"
-  windowIcon="/resources/feather-small.png" defaultImageResource="/resources/Jetspeed_blue_med.png" minJavaVersion="1.4"
+  windowIcon="/resources/feather-small.png" defaultImageResource="/resources/Jetspeed_blue_med.png" minJavaVersion="1.5"
   wide="700:250" antialiased="true">
 
   <page type="input" name="intro" displayText="Welcome to the Jetspeed Enterprise Portal 2.2-SNAPSHOT">
@@ -32,7 +32,7 @@
     <comment displayText="This installer will guide you through setting up the Jetspeed Portal." />
   </page>
 
-  <page type="license" name="license" displayText="License conditions" resource="/LICENSE.TXT"></page>
+  <page type="license" name="license" displayText="License conditions" resource="/LICENSE-ant-install.txt"></page>
 
   <page type="input" name="properties" displayText="Installation location">
     <directory property="installDir" defaultValue="${java.user.home}/Jetspeed-2.2-SNAPSHOT"
@@ -44,10 +44,10 @@
 
   <page type="input" name="requiredComponents" displayText="Components selection">
     <comment displayText="Jetspeed Enterprise Portal version 2.2-SNAPSHOT" bold="true" />
-    <target displayText="Tomcat 5.5.20 Webserver" target="install" defaultValue="true" force="true" />
+    <target displayText="Tomcat 5.5.27 Webserver" target="install" defaultValue="true" force="true" />
     <checkbox displayText="Jetspeed Portal" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="Layout Portlets" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="Portal Administration Portlets" property="dummy" defaultValue="true" force="true" />
+    <checkbox displayText="Jetspeed Layout Portlets" property="dummy" defaultValue="true" force="true" />
+    <checkbox displayText="Jetspeed Administration Portlets" property="dummy" defaultValue="true" force="true" />
     <checkbox displayText="Store PSML in the database?" property="dbImportPsml" defaultValue="false" />
   </page>
 
@@ -85,7 +85,7 @@
       defaultValue="jdbc:mysql://localhost:3306/&lt;dbname&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="com.mysql.jdbc.Driver" />
 
-    <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}mysql-connector-java-5.0.4.jar"
+    <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}mysql-connector-java-5.1.7.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
 
@@ -190,7 +190,7 @@
     <hidden property="jdbc.driver.class" value="${jdbcDriverClass}" />
     <hidden property="jdbc.driver.jar" value="${jdbcDriverJar}" />
     <hidden property="setupDBAntTarget" value="runSetupDB" />
-    <comment displayText="Press Next to test the database connection ..." />
+    <comment displayText="Press Next to test the database connection.." />
   </page>
 
   <page type="input" name="dbCheckFailed" displayText="Connection to the database failed"
@@ -198,21 +198,21 @@
     <hidden property="checkdb" value="false" />
     <hidden property="setupDBAntTarget" value="setupNoDB" />
 
-    <comment displayText="Please go back and specify the correct database configurtion parameters." bold="true" />
+    <comment displayText="Please go back and specify the correct database configuration parameters." bold="true" />
     <comment displayText="" />
     <comment displayText="Continuing now will otherwise require manual setup of the database."/>
   </page>
 
-  <page type="input" name="beforeInstall" displayText="Before your install ..." ifProperty="(${dbName}=manual) OR (${setupDBAntTarget}=setupNoDB)">
+  <page type="input" name="beforeInstall" displayText="Before your install.." ifProperty="(${dbName}=manual) OR (${setupDBAntTarget}=setupNoDB)">
     <hidden property="db.username" value="" />
     <hidden property="db.password" value="" />
     <hidden property="jdbc.url" value="" />
     <hidden property="jdbc.driver.class" value="" />
     <hidden property="jdbc.driver.jar" value="" />
     <hidden property="setupDBAntTarget" value="setupNoDB" />
-    <comment displayText="Jetspeed will be installed without yet an configured database to:" bold="true"/>
+    <comment displayText="Jetspeed will be installed without yet a configured database to:" bold="true"/>
     <comment displayText="  ${installDir}"/>
-    <comment displayText="Warning: All content in this directory will be deleted first." bold="true"/>
+    <comment displayText="Warning: all content in this directory will be deleted first!" bold="true"/>
     <comment displayText=""/>
     <comment displayText="After the installation you must manually setup the database."/>
     <comment displayText="An ant script is provided within the installation database directory." />
@@ -221,10 +221,10 @@
     <comment displayText="Initialize the database by running ant from the database directory." />
   </page>
 
-  <page type="input" name="beforeInstall" displayText="Before you install ..." ifProperty="${setupDBAntTarget}=runSetupDB">
+  <page type="input" name="beforeInstall" displayText="Before you install.." ifProperty="${setupDBAntTarget}=runSetupDB">
     <comment displayText="Jetspeed will be installed using a ${dbDisplayName} database to:" bold="true"/>
     <comment displayText="  ${installDir}"/>
-    <comment displayText="Warning: All content in this directory will be deleted first!" bold="true"/>
+    <comment displayText="Warning: all content in this directory will be deleted first!" bold="true"/>
     <comment displayText=""/>
     <comment displayText="After the installation you can manually reinitialize the database"/>
     <comment displayText="or even switch to another database using an ant script"/>

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-min.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Copied: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml (from r729295, portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-demo.xml)
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml?p2=portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml&p1=portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-demo.xml&r1=729295&r2=729327&rev=729327&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config-demo.xml (original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml Wed Dec 24 08:05:34 2008
@@ -18,20 +18,22 @@
   $Id$
 -->
 <!-- JS2-657: Installer fails with firewall
-<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN"
-    "http://antinstaller.sourceforge.net/dtd/antinstall-config-0.8.dtd">
+  
+  <!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN"
+  "http://antinstaller.sourceforge.net/dtd/antinstall-config-0.8.dtd">
 -->
-<installer ui="swing,text" verbose="false" lookAndFeel="jgoodies" name="Jetspeed Enterprise Portal 2.1 Demo Installer"
-  windowIcon="/resources/feather-small.png" defaultImageResource="/resources/Jetspeed_blue_med.png" minJavaVersion="1.4"
-  wide="700:250" antialiased="true">
 
+<installer ui="swing,text" verbose="false" lookAndFeel="jgoodies" name="Jetspeed Enterprise Portal 2.2-SNAPSHOT Installer"
+  windowIcon="/resources/feather-small.png" defaultImageResource="/resources/Jetspeed_blue_med.png" minJavaVersion="1.5"
+  wide="700:250" antialiased="true">
+  
   <page type="input" name="intro" displayText="Welcome to the Jetspeed Enterprise Portal 2.2-SNAPSHOT">
     <comment displayText="" />
-    <comment displayText="This installer will guide you through setting up the Jetspeed Portal Demo." />
+    <comment displayText="This installer will guide you through setting up the Jetspeed Portal." />
   </page>
-
-  <page type="license" name="license" displayText="License conditions" resource="/LICENSE.TXT"></page>
-
+  
+  <page type="license" name="license" displayText="License conditions" resource="/LICENSE-ant-install.txt"></page>
+  
   <page type="input" name="properties" displayText="Installation location">
     <directory property="installDir" defaultValue="${java.user.home}/Jetspeed-2.2-SNAPSHOT"
       defaultValueWin="C:\Apache\Jetspeed-2.2-SNAPSHOT" displayText="Select an installation directory" create="true"
@@ -39,27 +41,26 @@
     <comment displayText=""/>
     <comment displayText="Warning: on Windows, the location must not contain spaces." bold="true"/>
   </page>
-
+  
   <page type="input" name="requiredComponents" displayText="Components selection">
     <comment displayText="Jetspeed Enterprise Portal version 2.2-SNAPSHOT" bold="true" />
-    <target displayText="Tomcat 5.5.20 Webserver" target="install" defaultValue="true" force="true" />
+    <target displayText="Tomcat 5.5.27 Webserver" target="install" defaultValue="true" force="true" />
     <checkbox displayText="Jetspeed Portal" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="Layout Portlets" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="Portal Administration Portlets" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="RSS Portlets" property="dummy" defaultValue="true" force="true" />
+    <checkbox displayText="Jetspeed Layout Portlets" property="dummy" defaultValue="true" force="true" />
+    <checkbox displayText="Jetspeed Administration Portlets" property="dummy" defaultValue="true" force="true" />
     <checkbox displayText="Demo Portlets" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="JPetstore Demo Portlet" property="dummy" defaultValue="true" force="true" />
-    <checkbox displayText="JSF Demo Portlets" property="dummy" defaultValue="true" force="true" />
+    <checkbox displayText="RSS Portlets" property="dummy" defaultValue="true" force="true" />
+    <checkbox displayText="JPetstore Portlets" property="dummy" defaultValue="true" force="true" />
     <checkbox displayText="Store PSML in the database?" property="dbImportPsml" defaultValue="false" />
   </page>
-
+  
   <page type="input" name="databaseSelection" displayText="Database selection">
     <hidden property="checkdb" value="false" />
     <hidden property="dbvalid" value="false" />
     <hidden property="db.type" value="derby" />
     <hidden property="dbDisplayName" value="Derby"/>
     <hidden property="setupDBAntTarget" value="runSetupDB" />
-
+    
     <comment displayText="Please select the target database type you want to use for the portal." />
     <select property="dbName" displayText="Database type" defaultValue="derby">
       <option text="DB2" value="db2" />
@@ -72,117 +73,117 @@
       <option text="Manual database setup" value="manual" />
     </select>
   </page>
-
+  
   <page type="input" name="mysql" displayText="MySQL Database connection parameters" ifProperty="${dbName}=mysql">
     <hidden property="checkdb" value="true" />
     <hidden property="dbvalid" value="false" />
     <hidden property="dbDisplayName" value="MySQL"/>
-
+    
     <comment displayText="Please fill in the fields below for connecting to the MySQL database." />
-
+    
     <text property="dbUser" displayText="Database User Name" defaultValue="" />
     <text property="dbPassword" displayText="Database Password" defaultValue="" />
-
+    
     <text property="jdbcUrl" displayText="JDBC Connection String"
       defaultValue="jdbc:mysql://localhost:3306/&lt;dbname&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="com.mysql.jdbc.Driver" />
-
-    <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}mysql-connector-java-5.0.4.jar"
+    
+    <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}mysql-connector-java-5.1.7.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
-
+  
   <page type="input" name="postgres" displayText="PostgreSQL Database connection parameters"
     ifProperty="${dbName}=postgres">
     <hidden property="checkdb" value="true" />
     <hidden property="dbvalid" value="false" />
     <hidden property="dbDisplayName" value="PostgreSQL"/>
-
+    
     <comment displayText="Please fill in the fields below for connecting to the PostgreSQL database." />
-
+    
     <text property="dbUser" displayText="Database User Name" defaultValue="" />
     <text property="dbPassword" displayText="Database Password" defaultValue="" />
-
+    
     <text property="jdbcUrl" displayText="JDBC Connection String"
       defaultValue="jdbc:postgresql://localhost:5432/&lt;dbname&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="org.postgresql.Driver" />
-
+    
     <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}postgresql-8.1-405.jdbc3.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
-
+  
   <page type="input" name="sapdb" displayText="SapDB Database connection parameters" ifProperty="${dbName}=sapdb">
     <hidden property="checkdb" value="true" />
     <hidden property="dbvalid" value="false" />
     <hidden property="dbDisplayName" value="SapDB"/>
-
+    
     <comment displayText="Please fill in the fields below for connecting to the SapDB database." />
-
+    
     <text property="dbUser" displayText="Database User Name" defaultValue="" />
     <text property="dbPassword" displayText="Database Password" defaultValue="" />
-
+    
     <text property="jdbcUrl" displayText="JDBC Connection String" defaultValue="jdbc:sapdb://localhost/&lt;dbname&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="com.sap.dbtech.jdbc.DriverSapDB" />
-
+    
     <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}sapdb-jdbc-bin-7.4.04.03a.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
-
+  
   <page type="input" name="oracle" displayText="Oracle Database connection parameters" ifProperty="${dbName}=oracle">
     <hidden property="checkdb" value="true" />
     <hidden property="dbvalid" value="false" />
     <hidden property="dbDisplayName" value="Oracle"/>
-
+    
     <comment displayText="Please fill in the fields below for connecting to the Oracle database." />
-
+    
     <text property="dbUser" displayText="Database User Name" defaultValue="" />
     <text property="dbPassword" displayText="Database Password" defaultValue="" />
-
+    
     <text property="jdbcUrl" displayText="JDBC Connection String"
       defaultValue="jdbc:oracle:thin:@localhost:1521:&lt;instance&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="oracle.jdbc.driver.OracleDriver" />
-
+    
     <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}ojdbc14.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
-
+  
   <page type="input" name="mssql" displayText="Microsoft SQL Server connection parameters"
     ifProperty="${dbName}=mssql">
     <hidden property="checkdb" value="true" />
     <hidden property="dbvalid" value="false" />
     <hidden property="dbDisplayName" value="MSSQL"/>
-
+    
     <comment displayText="Please fill in the fields below for connecting to the Microsoft SQL Server." />
-
+    
     <text property="dbUser" displayText="Database User Name" defaultValue="" />
     <text property="dbPassword" displayText="Database Password" defaultValue="" />
-
+    
     <text property="jdbcUrl" displayText="JDBC Connection String"
       defaultValue="jdbc:jtds:sqlserver://localhost:1433/&lt;dbname&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname"
       defaultValue="net.sourceforge.jtds.jdbc.Driver" />
-
+    
     <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}jtds-1.2.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
-
+  
   <page type="input" name="db2" displayText="DB2 Database connection parameters" ifProperty="${dbName}=db2">
     <hidden property="checkdb" value="true" />
     <hidden property="dbvalid" value="false" />
     <hidden property="dbDisplayName" value="DB2"/>
-
+    
     <comment displayText="Please fill in the fields below for connecting to the DB2 database." />
-
+    
     <text property="dbUser" displayText="Database User Name" defaultValue="" />
     <text property="dbPassword" displayText="Database Password" defaultValue="" />
-
+    
     <text property="jdbcUrl" displayText="JDBC Connection String"
       defaultValue="jdbc:db2://localhost:1527/&lt;dbname&gt;" />
     <text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="COM.ibm.db2.jdbc.app.DB2Driver" />
-
+    
     <file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}db2jcc.jar"
       displayText="JDBC driver" checkExists="true" />
   </page>
-
+  
   <page type="input" name="preDBCheck" displayText="Testing the database connection"
     ifProperty="(${checkdb}=true) AND (${dbvalid}=false)" postDisplayTarget="antinstaller-checkdb">
     <hidden property="db.type" value="${dbName}" />
@@ -192,29 +193,29 @@
     <hidden property="jdbc.driver.class" value="${jdbcDriverClass}" />
     <hidden property="jdbc.driver.jar" value="${jdbcDriverJar}" />
     <hidden property="setupDBAntTarget" value="runSetupDB" />
-    <comment displayText="Press Next to test the database connection ..." />
+    <comment displayText="Press Next to test the database connection.." />
   </page>
-
+  
   <page type="input" name="dbCheckFailed" displayText="Connection to the database failed"
     ifProperty="(${checkdb}=true) AND (${dbvalid}=false)">
     <hidden property="checkdb" value="false" />
     <hidden property="setupDBAntTarget" value="setupNoDB" />
-
-    <comment displayText="Please go back and specify the correct database configurtion parameters." bold="true" />
+    
+    <comment displayText="Please go back and specify the correct database configuration parameters." bold="true" />
     <comment displayText="" />
     <comment displayText="Continuing now will otherwise require manual setup of the database."/>
   </page>
-
-  <page type="input" name="beforeInstall" displayText="Before your install ..." ifProperty="(${dbName}=manual) OR (${setupDBAntTarget}=setupNoDB)">
+  
+  <page type="input" name="beforeInstall" displayText="Before your install.." ifProperty="(${dbName}=manual) OR (${setupDBAntTarget}=setupNoDB)">
     <hidden property="db.username" value="" />
     <hidden property="db.password" value="" />
     <hidden property="jdbc.url" value="" />
     <hidden property="jdbc.driver.class" value="" />
     <hidden property="jdbc.driver.jar" value="" />
     <hidden property="setupDBAntTarget" value="setupNoDB" />
-    <comment displayText="Jetspeed will be installed without yet an configured database to:" bold="true"/>
+    <comment displayText="Jetspeed will be installed without yet a configured database to:" bold="true"/>
     <comment displayText="  ${installDir}"/>
-    <comment displayText="Warning: All content in this directory will be deleted first." bold="true"/>
+    <comment displayText="Warning: all content in this directory will be deleted first!" bold="true"/>
     <comment displayText=""/>
     <comment displayText="After the installation you must manually setup the database."/>
     <comment displayText="An ant script is provided within the installation database directory." />
@@ -222,11 +223,11 @@
     <comment displayText="file provided in the same directory before running ant." />
     <comment displayText="Initialize the database by running ant from the database directory." />
   </page>
-
-  <page type="input" name="beforeInstall" displayText="Before you install ..." ifProperty="${setupDBAntTarget}=runSetupDB">
+  
+  <page type="input" name="beforeInstall" displayText="Before you install.." ifProperty="${setupDBAntTarget}=runSetupDB">
     <comment displayText="Jetspeed will be installed using a ${dbDisplayName} database to:" bold="true"/>
     <comment displayText="  ${installDir}"/>
-    <comment displayText="Warning: All content in this directory will be deleted first!" bold="true"/>
+    <comment displayText="Warning: all content in this directory will be deleted first!" bold="true"/>
     <comment displayText=""/>
     <comment displayText="After the installation you can manually reinitialize the database"/>
     <comment displayText="or even switch to another database using an ant script"/>
@@ -235,7 +236,7 @@
     <comment displayText="file provided in the same directory before running ant." />
     <comment displayText="Reinitialize the database by running ant from the database directory." />
   </page>
-
+  
   <page type="progress" name="progress" displayText="Installation progress" />
-
+  
 </installer>

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/antinstall-config.xml
------------------------------------------------------------------------------
    svn:mergeinfo = 

Modified: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml?rev=729327&r1=729326&r2=729327&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml (original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml Wed Dec 24 08:05:34 2008
@@ -38,9 +38,8 @@
     <echo>Installing Jetspeed-2.2-SNAPSHOT Enterprise Portal</echo>
     <unzip src="${antinstaller.jar}" dest="${installDir}">
       <patternset>
-        <include name="portal.zip" />
+        <include name="tomcat-portal.zip" />
         <include name="database.zip" />
-        <include name="tomcat-compat.zip" unless="jdk15Installed" />
       </patternset>
     </unzip>
     <unzip dest="${installDir}">
@@ -52,11 +51,10 @@
     <chmod perm="700" dir="${installDir}/bin" includes="**/*.sh" />
 
     <echo>Setting up the database configuration</echo>
-    <condition property="jdbcjar" value="${installDir}/database/lib/derby-10.1.1.0.jar">
+    <condition property="jdbcjar" value="${installDir}/database/lib/derby-10.3.2.1.jar">
       <equals arg1="${jdbc.driver.jar}" arg2="" />
     </condition>
-<!--    <copy file="${installDir}/webapps/${portalName}/WEB-INF/assembly/page-manager.xml" tofile="${installDir}/webapps/${portalName}/WEB-INF/assembly/alternate/fs-page-manager.xml"/>
-  -->
+    
     <property name="jdbcjar" value="${jdbc.driver.jar}" />
     <copy failonerror="false" todir="${installDir}/shared/lib" file="${jdbcjar}" />
 

Modified: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/build.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/build.xml?rev=729327&r1=729326&r2=729327&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/build.xml (original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/build.xml Wed Dec 24 08:05:34 2008
@@ -19,359 +19,231 @@
 -->
 <project name="JetspeedDatabaseSetup" default="setupDB" basedir=".">
 
-  <property file="${basedir}/database.properties" />
-  <property file="build.properties"/>
+	<property file="${basedir}/database.properties" />
+	<property file="build.properties" />
 
-  <condition property="_db.username" value="">
-    <equals arg1="${db.type}" arg2="derby" />
-  </condition>
-  <property name="_db.username" value="${db.username}" />
-  <condition property="_db.password" value="">
-    <equals arg1="${db.type}" arg2="derby" />
-  </condition>
-  <property name="_db.password" value="${db.password}" />
-  <condition property="_jdbc.url" value="jdbc:derby:${basedir}/derby/productiondb;create=true">
-    <equals arg1="${db.type}" arg2="derby" />
-  </condition>
-  <property name="_jdbc.url" value="${jdbc.url}" />
-  <condition property="_jdbc.driver.class" value="org.apache.derby.jdbc.EmbeddedDriver">
-    <equals arg1="${db.type}" arg2="derby" />
-  </condition>
-  <property name="_jdbc.driver.class" value="${jdbc.driver.class}" />
-
-  <target name="setupDB">
-
-    <echo>Setting up the Jetspeed database for ${db.type}</echo>
-
-    <echo>All existing Jetspeed data is going to be deleted from the database.</echo>
-    <echo></echo>
-    <echo>Selected database configuration:</echo>
-    <echo></echo>
-    <echo>database type: ${db.type}</echo>
-    <echo>username: ${_db.username}</echo>
-    <echo>jdbc url: ${_jdbc.url}</echo>
-    <echo></echo>
-    <echo>Make sure that the appropriate jdbc driver jar for the ${db.type} database is placed in the Tomcat shared/lib folder.</echo>
-    <echo>For using the Derby database, the correct driver jar is available in the lib folder.</echo>
-    <echo></echo>
-    <echo>Also make sure Tomcat is not running before continuing.</echo>
-    <echo></echo>
-    <input validargs="y,n" defaultvalue="n" addproperty="do.continue">Are you sure to continue?</input>
-    <condition property="failSetup">
-      <equals arg1="n" arg2="${do.continue}" />
-    </condition>
-
-    <antcall target="checkInput" />
-
-  </target>
-
-  <target name="setupNoDB">
-  	<antcall target="setupDBPSML"/>
-  </target>
-
-  <target name="checkInput" unless="failSetup">
-    <antcall target="runSetupDB"/>
-  </target>
-  
-  <target name='setupDBPSML'>
-    <copy file="${basedir}/../webapps/${portalName}/WEB-INF/assembly/page-manager.xml" tofile="${basedir}/../webapps/${portalName}/WEB-INF/assembly/alternate/fs-page-manager.xml"/>
-	</target>
-	
-  <target name="runSetupDB" 
-    depends="setupDBPSML,checkDerby,generateStandardDB,generateDerbyDB,seedDB,copyJetspeedContext,do-psml" />
-	
-  <target name="checkDerby">
-    <condition property="_derby">
-      <equals arg1="${db.type}" arg2="derby" />
-    </condition>
-  </target>
-
-  <target name="generateDerbyDB" if="_derby">
-    <delete dir="${basedir}/derby/productiondb" quiet="true" />
-    <antcall target="sqlDerbyDB">
-      <param name="databaseScript" value="${basedir}/derby/phase1-schema.sql" />
-    </antcall>
-    <antcall target="sqlDerbyDB">
-      <param name="databaseScript" value="${basedir}/derby/phase2-schema.sql" />
-    </antcall>
-    <antcall target="sqlDerbyDB">
-      <param name="databaseScript" value="${basedir}/derby/phase3ojb-schema.sql" />
-    </antcall>
-    <antcall target="sqlDerbyDB">
-      <param name="databaseScript" value="${basedir}/derby/prefs-schema.sql" />
-    </antcall>
-    <antcall target="sqlDerbyDB">
-      <param name="databaseScript" value="${basedir}/derby/registry-schema.sql" />
-    </antcall>
-    <antcall target="sqlDerbyDB">
-      <param name="databaseScript" value="${basedir}/derby/security-schema.sql" />
-    </antcall>
-
-  </target>
-
-  <target name="generateStandardDB" unless="_derby">
-    <echo>cleaning up possible existing Db</echo>
-
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/drop.sql" autocommit="true" onerror="continue" print="no" output="setup.log">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <echo>starting Db generation</echo>
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/${db.type}/phase1-schema.sql">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/${db.type}/phase2-schema.sql" print="yes" output="setup.log">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/${db.type}/phase3ojb-schema.sql" print="yes" output="setup.log">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/${db.type}/prefs-schema.sql" print="yes" output="setup.log">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/${db.type}/registry-schema.sql" print="yes" output="setup.log">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}"
-      src="${basedir}/${db.type}/security-schema.sql" print="yes" output="setup.log">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-      </classpath>
-    </sql>
-    <echo>DB generation done!</echo>
-
-  </target>
-
-  <target name="seedDB">
-
-    <delete dir="${basedir}/assembly" />
-    <mkdir dir="${basedir}/assembly" />
-    <echo>Seeding the database</echo>
-
-    <copy todir="${basedir}/assembly" overwrite="true" failonerror="true">
-      <fileset dir="${basedir}/../webapps/${portalName}/WEB-INF/assembly">
-        <include name="security*.xml" />
-        <include name="capabilities.xml" />
-        <include name="prefs.xml" />
-        <include name="profiler.xml" />
-        <include name="transaction.xml" />
-        <include name="cache.xml" />
-      </fileset>
-    </copy>
-
-
-    <copy todir="${basedir}/assembly" overwrite="true" failonerror="true">
-      <fileset dir="${basedir}/../webapps/${portalName}/WEB-INF/assembly/alternate/">
-        <include name="request-context.xml" />
-        <include name="db-page-manager.xml" />
-        <include name="interceptors.xml" />
-        <include name="seed-registry.xml" />
-      </fileset>
-    </copy>
-
-    <mkdir dir="${basedir}/assembly/boot" />
-
-    <copy todir="${basedir}/assembly/boot" overwrite="true" failonerror="true">
-      <fileset dir="${basedir}/../webapps/${portalName}/WEB-INF/assembly/boot">
-        <include name="*.xml" />
-      </fileset>
-    </copy>
-
-    <java classname="org.apache.jetspeed.serializer.JetspeedSerializerApplication" fork="yes">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <fileset dir="${basedir}/../webapps/${portalName}/WEB-INF/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <fileset dir="${basedir}/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <fileset dir="${basedir}/../common/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <pathelement location="${basedir}/../shared/classes" />
-        <pathelement location="${basedir}/../webapps/${portalName}/WEB-INF/classes" />
-      </classpath>
+	<condition property="_db.username" value="">
+		<equals arg1="${db.type}" arg2="derby" />
+	</condition>
+	<property name="_db.username" value="${db.username}" />
+	<condition property="_db.password" value="">
+		<equals arg1="${db.type}" arg2="derby" />
+	</condition>
+	<property name="_db.password" value="${db.password}" />
+	<condition property="_jdbc.url" value="jdbc:derby:${basedir}/derby/productiondb;create=true">
+		<equals arg1="${db.type}" arg2="derby" />
+	</condition>
+	<property name="_jdbc.url" value="${jdbc.url}" />
+	<condition property="_jdbc.driver.class" value="org.apache.derby.jdbc.EmbeddedDriver">
+		<equals arg1="${db.type}" arg2="derby" />
+	</condition>
+	<property name="_jdbc.driver.class" value="${jdbc.driver.class}" />
+
+	<property name="jetspeedWebInfDir" value="${basedir}/../webapps/${portalName}/WEB-INF" />
+
+	<target name="setupDB">
+
+		<echo>Setting up the Jetspeed database for ${db.type}</echo>
+
+		<echo>All existing Jetspeed data is going to be deleted from the database.</echo>
+		<echo>
+		</echo>
+		<echo>Selected database configuration:</echo>
+		<echo>
+		</echo>
+		<echo>database type: ${db.type}</echo>
+		<echo>username: ${_db.username}</echo>
+		<echo>jdbc url: ${_jdbc.url}</echo>
+		<echo>
+		</echo>
+		<echo>Make sure that the appropriate jdbc driver jar for the ${db.type} database is placed in the Tomcat shared/lib folder.</echo>
+		<echo>For using the Derby database, the correct driver jar is available in the lib folder.</echo>
+		<echo>
+		</echo>
+		<echo>Also make sure Tomcat is not running before continuing.</echo>
+		<echo>
+		</echo>
+		<input validargs="y,n" defaultvalue="n" addproperty="do.continue">Are you sure to continue?</input>
+		<condition property="failSetup">
+			<equals arg1="n" arg2="${do.continue}" />
+		</condition>
 
-      <arg
-        line="-I &quot;${basedir}/j2-seed.xml&quot; 
-              -a &quot;${basedir}/../webapps/${portalName}&quot;
-              -b &quot;file:${basedir}/assembly/boot/&quot;
-              -c &quot;file:${basedir}/assembly/&quot;
-              -dc &quot;${_jdbc.driver.class}&quot;
-              -ds &quot;${_jdbc.url}&quot;
-              -du &quot;${_db.username}&quot;
-              -dp &quot;${_db.password}&quot;" />
-    </java>
-
-  </target>
-
-  <target name='sqlDerbyDB'>
-    <echo>Excuting file: ${databaseScript}</echo>
-    <java classname="org.apache.jetspeed.anttasks.ExecuteJavaSQL" fork="yes">
-      <classpath>
-        <fileset dir="${basedir}/../shared/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <fileset dir="${basedir}/../webapps/${portalName}/WEB-INF/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <fileset dir="${basedir}/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <fileset dir="${basedir}/../common/lib">
-          <include name="**/*.jar" />
-        </fileset>
-        <pathelement location="${basedir}/../shared/classes" />
-        <pathelement location="${basedir}/../webapps/${portalName}/WEB-INF/classes" />
-      </classpath>
-      <arg
-        line="driver=&quot;${_jdbc.driver.class}&quot; 
+		<antcall target="checkInput" />
+
+	</target>
+
+	<target name="setupNoDB">
+		<antcall target="setupDBPSML" />
+	</target>
+
+	<target name="checkInput" unless="failSetup">
+		<antcall target="runSetupDB" />
+	</target>
+
+	<target name='setupDBPSML'>
+		<copy file="${jetspeedWebInfDir}/assembly/page-manager.xml" tofile="${jetspeedWebInfDir}/assembly/alternate/fs-page-manager.xml" />
+	</target>
+
+	<target name="runSetupDB" depends="setupDBPSML,checkDerby,generateStandardDB,generateDerbyDB,copyJetspeedContext,filterSpringDatasource,seedDB,do-psml" />
+
+	<target name="checkDerby">
+		<condition property="_derby">
+			<equals arg1="${db.type}" arg2="derby" />
+		</condition>
+	</target>
+
+	<target name="generateDerbyDB" if="_derby">
+		<delete dir="${basedir}/derby/productiondb" quiet="true" />
+		<echo>Executing file ${basedir}/derby/create-schema.sql</echo>
+
+		<java classname="org.apache.jetspeed.anttasks.ExecuteJavaSQL" fork="yes">
+			<classpath>
+				<fileset dir="${basedir}/../shared/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<fileset dir="${jetspeedWebInfDir}/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<fileset dir="${basedir}/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<fileset dir="${basedir}/../common/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<pathelement location="${basedir}/../shared/classes" />
+				<pathelement location="${jetspeedWebInfDir}/classes" />
+			</classpath>
+			<arg line="driver=&quot;${_jdbc.driver.class}&quot; 
 	          url=&quot;${_jdbc.url}&quot;
 	          userid=&quot;${_db.username}&quot; 
 	          password=&quot;{_db.password}&quot;
-	          src=&quot;${databaseScript}&quot; autocommit=true
+	          src=&quot;${basedir}/derby/create-schema.sql&quot; autocommit=true
 	          onerror=abort" />
-    </java>
+		</java>
+	</target>
+
+	<target name="generateStandardDB" unless="_derby">
+		<echo>Cleaning up possible existing database</echo>
 
-  </target>
+		<sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}" src="${basedir}/${db.type}/drop-schema.sql" autocommit="true" onerror="continue" print="no" output="setup.log">
+			<classpath>
+				<fileset dir="${basedir}/../shared/lib">
+					<include name="**/*.jar" />
+				</fileset>
+			</classpath>
+		</sql>
+
+		<echo>Starting database generation</echo>
+		<sql driver="${_jdbc.driver.class}" url="${_jdbc.url}" userid="${_db.username}" password="${_db.password}" src="${basedir}/${db.type}/create-schema.sql">
+			<classpath>
+				<fileset dir="${basedir}/../shared/lib">
+					<include name="**/*.jar" />
+				</fileset>
+			</classpath>
+		</sql>
+		<echo>Database generation done!</echo>
 
-  <target name="copyJetspeedContext">
-    <copy file="${portalName}.xml" tofile="${basedir}/../conf/Catalina/localhost/${portalName}.xml" overwrite="true">
-      <filterset begintoken="@" endtoken="@">
-        <filter token="USERNAME" value="${_db.username}" />
-        <filter token="PASSWORD" value="${_db.password}" />
-        <filter token="DRIVER" value="${_jdbc.driver.class}" />
-        <filter token="URL" value="${_jdbc.url}" />
-      </filterset>
-    </copy>
-  </target>
-
-<!-- Import of PSML -->
-  <property name="import.jdbc.driver.class" value="${_jdbc.driver.class}"/>
-  <property name="import.jdbc.username" value="${_db.username}"/>
-  <property name="import.jdbc.password" value="${_db.password}"/>
-  <property name="import.jdbc.url" value="${_jdbc.url}"/>
-  
-  <property name="jetspeedWebinfDir" value="${basedir}/../webapps/${portalName}/WEB-INF"/>
-  <property name="pagesLocation" value="${jetspeedWebinfDir}/pages"/>
-  <property name="importDir" value="${basedir}/import"/>
-  <property name="importTargetDir" value="${importDir}/target"/>
-  <property name="org.apache.jetspeed.page.import.configuration" value="${basedir}/import/import.properties"/>
-  <property name="org.apache.jetspeed.page.import.pages" value="${jetspeedWebinfDir}/pages"/>
-  
-  <path id="import-classpath">
-    <fileset dir="${basedir}/../shared/lib">
-      <include name="**/*.jar" />
-    </fileset>
-    <fileset dir="${jetspeedWebinfDir}/lib">
-      <include name="**/*.jar" />
-    </fileset>
-    <fileset dir="${basedir}/lib">
-      <include name="**/*.jar" />
-    </fileset>
-    <fileset dir="${basedir}/../common/lib">
-      <include name="**/*.jar" />
-    </fileset>
-    <pathelement location="${basedir}/../shared/classes" />
-    <pathelement location="${jetspeedWebinfDir}/classes" />
-    <pathelement location="${importTargetDir}/classes" />
-  </path>
-  
- 
-  <!-- Populate Database -->
-  
-  <target name="test-import-psml">
-    <condition property="_doImportPsml">
-      <equals arg1="${dbImportPsml}" arg2="true"/>
-    </condition>
-  </target>
-  
-  <target name="do-psml" depends="test-import-psml,db-psml,fs-psml"/>
-  
-  <target name="fs-psml" unless="_doImportPsml">
-    <copy file="${jetspeedWebinfDir}/assembly/alternate/fs-page-manager.xml" tofile="${jetspeedWebinfDir}/assembly/page-manager.xml" overwrite="true"/>
-    <delete quiet="true" file="${jetspeedWebinfDir}/assembly/interceptors.xml"/>
-  </target>
-  
-  <target name="db-psml" if="_doImportPsml">
-    
-    <!-- prepare a classes directory with resources and libraries to execute import -->
-    <delete dir="${importTargetDir}/classes"/>
-    <mkdir dir="${importTargetDir}/classes"/>
-    <echo>Import dir: ${importDir}</echo>
-    <copy todir="${importTargetDir}/classes" flatten="on">
-      <fileset dir="${importDir}" >
-        <include name="db-ojb/*"/>
-        <include name="log4j.properties"/>
-        <include name="assembly/import-page-manager.xml"/>
-        <include name="assembly/repository-datasource-spring.xml"/>
-      </fileset>
-      <fileset dir="${jetspeedWebinfDir}" >
-        <include name="assembly/transaction.xml"/>
-        <include name="assembly/alternate/interceptors.xml"/>
-      </fileset>
-    </copy>    
-  
-    <!-- create sysproperty set to configure import utility -->
-    <propertyset id="import.syspropertyset.id">
-      <propertyref name="org.apache.jetspeed.page.import.configuration"/>
-      <propertyref name="org.apache.jetspeed.page.import.pages"/>
-      <propertyref name="import.jdbc.driver.class"/>
-      <propertyref name="import.jdbc.username"/>
-      <propertyref name="import.jdbc.password"/>
-      <propertyref name="import.jdbc.url"/>
-    </propertyset>
-    
-    <!-- execute import utility within the page manager component -->
-    <antcall target="execute-import" inheritall="on" inheritrefs="on"/>
-    
-    <copy file="${jetspeedWebinfDir}/assembly/alternate/db-page-manager.xml" tofile="${jetspeedWebinfDir}/assembly/page-manager.xml" overwrite="true"/>
-    <copy file="${jetspeedWebinfDir}/assembly/alternate/interceptors.xml" todir="${jetspeedWebinfDir}/assembly" overwrite="true"/>
-  </target>
-  
-  <target name="execute-import">
-    
-    <!-- execute import utility with drivers path in classpath -->
-    <java classpathref="import-classpath" classname="org.apache.jetspeed.page.PageImporter" fork="yes" dir="${basedir}">
-      <syspropertyset>
-        <propertyset refid="import.syspropertyset.id"/>
-      </syspropertyset>
-    </java>
-    
-  </target>
+	</target>
+
+	<target name="copyJetspeedContext">
+		<copy file="${portalName}.xml" tofile="${basedir}/../conf/Catalina/localhost/${portalName}.xml" overwrite="true">
+
+			<!-- note that the $ is escaped here -->
+			<filterset begintoken="$${" endtoken="}">
+				<filter token="org.apache.jetspeed.production.database.user" value="${_db.username}" />
+				<filter token="org.apache.jetspeed.production.database.password" value="${_db.password}" />
+				<filter token="org.apache.jetspeed.production.database.driver" value="${_jdbc.driver.class}" />
+				<filter token="org.apache.jetspeed.production.database.url" value="${_jdbc.url}" />
+			</filterset>
+		</copy>
+	</target>
+
+	<target name="filterSpringDatasource">
+		<copy file="${jetspeedWebInfDir}/assembly/boot/datasource.xml" tofile="${jetspeedWebInfDir}/assembly/boot/datasource_filtered.xml">
+			<!-- note that the $ is escaped here -->
+			<filterset begintoken="$${" endtoken="}">
+				<filter token="org.apache.jetspeed.database.user" value="${_db.username}" />
+				<filter token="org.apache.jetspeed.database.password" value="${_db.password}" />
+				<filter token="org.apache.jetspeed.database.driver" value="${_jdbc.driver.class}" />
+				<filter token="org.apache.jetspeed.database.url" value="${_jdbc.url}" />
+			</filterset>
+		</copy>
+		<move file="${jetspeedWebInfDir}/assembly/boot/datasource_filtered.xml" tofile="${jetspeedWebInfDir}/assembly/boot/datasource.xml" overwrite="true" />
+		<delete file="${jetspeedWebInfDir}/assembly/boot/datasource_filtered.xml" />
+	</target>
+
+	<target name="seedDB">
+
+		<echo>Seeding the database</echo>
+
+		<java classname="org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl" fork="yes">
+			<classpath>
+				<fileset dir="${basedir}/../shared/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<fileset dir="${jetspeedWebInfDir}/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<fileset dir="${basedir}/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<fileset dir="${basedir}/../common/lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<pathelement location="${basedir}/../shared/classes" />
+				<pathelement location="${jetspeedWebInfDir}/classes" />
+			</classpath>
+
+			<arg line="-I &quot;${basedir}/j2-seed.xml&quot; 
+              -a &quot;${basedir}/../webapps/${portalName}&quot;
+      		  -c &quot;serializer&quot;
+      	      -p &quot;${jetspeedWebInfDir}/conf/spring-filter.properties&quot;" />
+		</java>
+
+	</target>
+
+	<!-- Populate database with pages the user has selected so -->
+	<target name="do-psml" depends="test-import-psml,db-psml,fs-psml" />
+
+	<target name="test-import-psml">
+		<condition property="_doImportPsml">
+			<equals arg1="${dbImportPsml}" arg2="true" />
+		</condition>
+	</target>
+
+	<target name="fs-psml" unless="_doImportPsml">
+		<copy file="${jetspeedWebInfDir}/assembly/alternate/fs-page-manager.xml" tofile="${jetspeedWebInfDir}/assembly/page-manager.xml" overwrite="true" />
+		<delete quiet="true" file="${jetspeedWebInfDir}/assembly/interceptors.xml" />
+	</target>
+
+	<target name="db-psml" if="_doImportPsml">
+
+	    <echo>Importing psml into the database</echo>
+
+	    <java classname="org.apache.jetspeed.tools.page.serializer.JetspeedPageSerializerApplicationImpl" fork="yes">
+	      <classpath>
+	        <fileset dir="${basedir}/../shared/lib">
+	          <include name="**/*.jar" />
+	        </fileset>
+	        <fileset dir="${jetspeedWebInfDir}/lib">
+	          <include name="**/*.jar" />
+	        </fileset>
+	        <fileset dir="${basedir}/lib">
+	          <include name="**/*.jar" />
+	        </fileset>
+	        <fileset dir="${basedir}/../common/lib">
+	          <include name="**/*.jar" />
+	        </fileset>
+	        <pathelement location="${basedir}/../shared/classes" />
+	        <pathelement location="${jetspeedWebInfDir}/classes" />
+	      </classpath>
+
+	      <arg
+	        line="-I &quot;/&quot;
+	              -a &quot;${basedir}/../webapps/${portalName}&quot;
+	      		  -c &quot;pageSerializer&quot;
+	      	      -p &quot;${jetspeedWebInfDir}/conf/spring-filter.properties&quot;" />
+	    </java>
+	</target>
 
 </project>

Modified: portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/database.properties.template
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/database.properties.template?rev=729327&r1=729326&r2=729327&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/database.properties.template (original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/database/database.properties.template Wed Dec 24 08:05:34 2008
@@ -1,4 +1,4 @@
-; Jetspeed Enterprise Portal 2.1.1 Database setup configuration
+; Jetspeed Enterprise Portal 2.2-SNAPSHOT Database setup configuration
 
 ; db.type supported values: db2, derby, mssql, mysql, oracle, postgres, sapdb
 db.type=@db.type@

Added: portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml?rev=729327&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml (added)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml Wed Dec 24 08:05:34 2008
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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$
+-->
+<assembly xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/xsd/assembly-1.0.0.xsd">
+  <id>installer</id>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <formats>
+    <format>jar</format>
+  </formats>
+  <dependencySets>
+    <dependencySet>
+      <unpack>true</unpack>
+      <includes>
+        <include>jetspeed-ant-tasks*</include>
+      </includes>
+      <useProjectArtifact>false</useProjectArtifact>
+    </dependencySet>
+  </dependencySets>
+  <fileSets>
+    <fileSet>
+      <directory>target/ant-installer-classes</directory>
+      <outputDirectory>/</outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>etc/ant-installer/license</directory>
+      <outputDirectory>license</outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>etc/ant-installer/resources</directory>
+      <outputDirectory>resources</outputDirectory>
+    </fileSet>
+  </fileSets>
+  <files>
+    <file>
+      <source>etc/ant-installer/build.xml</source>
+      <outputDirectory>/</outputDirectory>
+    </file>
+    <file>
+      <source>target/resources/ant-installer/antinstall-config.xml</source>
+      <outputDirectory>/</outputDirectory>
+    </file>
+    <file>
+      <source>target/database.zip</source>
+      <outputDirectory>/</outputDirectory>
+    </file>
+    <file>
+      <source>target/tomcat-portal.zip</source>
+      <outputDirectory>/</outputDirectory>
+    </file>
+  </files>
+</assembly>
+

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/final-assembly-descriptor.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml?rev=729327&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml (added)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml Wed Dec 24 08:05:34 2008
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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 xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <prerequisites>
+    <maven>2.0.9</maven>
+  </prerequisites>
+
+  <artifactId>jetspeed-installer</artifactId>
+  <name>Jetspeed-2 Maven Invoker Configuration for installer</name>
+  <description>Jetspeed-2 Maven Invoker Configuration for installer</description>
+  <parent>
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <artifactId>jetspeed-2</artifactId>
+    <version>2.2-SNAPSHOT</version>
+  </parent>
+
+  <packaging>jar</packaging>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.portals.jetspeed-2</groupId>
+      <artifactId>jetspeed-ant-tasks</artifactId>
+      <version>${pom.version}</version>
+      <type>jar</type>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <defaultGoal>package</defaultGoal>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.2</version>
+        <executions>
+
+          <!-- expand etc/antinstaller/lib/* to target/ant-installer-classes  -->
+          <execution>
+            <id>unpack-ant-installer</id>
+            <phase>generate-resources</phase>
+            <configuration>
+              <tasks>
+                <unjar src="etc/ant-installer/lib/ai-icons-eclipse.jar"
+                  dest="${project.build.directory}/ant-installer-classes" overwrite="false"/>
+                <unjar src="etc/ant-installer/lib/ant.jar"
+                  dest="${project.build.directory}/ant-installer-classes" overwrite="false"/>
+                <unjar src="etc/ant-installer/lib/ant-installer.jar"
+                  dest="${project.build.directory}/ant-installer-classes" overwrite="false"/>
+                <unjar src="etc/ant-installer/lib/ant-launcher.jar"
+                  dest="${project.build.directory}/ant-installer-classes" overwrite="false"/>
+                <unjar src="etc/ant-installer/lib/jgoodies-edited-1_2_2.jar"
+                  dest="${project.build.directory}/ant-installer-classes" overwrite="false"/>
+                <unjar src="etc/ant-installer/lib/xml-apis.jar"
+                  dest="${project.build.directory}/ant-installer-classes" overwrite="false"/>
+                <delete dir="${project.build.directory}/ant-installer-classes/META-INF"/>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.2</version>
+        <executions>
+          
+          <!-- copy some ant-installer configuration file to target/resources/ant-installer -->
+          <execution>
+            <id>copy-configuration</id>
+            <phase>generate-resources</phase>
+            <configuration>
+              <tasks>
+                <copy file="etc/ant-installer/@antinstall.filename@" 
+                  tofile="${project.build.directory}/resources/ant-installer/antinstall-config.xml"/>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+     <!-- assembly: create self extracting jar -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>final-assembly</id>
+            <phase>package</phase>
+            <configuration>
+              <descriptors>
+                <descriptor>final-assembly-descriptor.xml</descriptor>
+              </descriptors>
+              <appendAssemblyId>false</appendAssemblyId>
+              <archive>
+                <manifest>
+                  <mainClass>org.tp23.antinstaller.selfextract.NonExtractor</mainClass>
+                </manifest>
+              </archive>
+            </configuration>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+   </build>
+  
+  <profiles>
+    <profile>
+      <id>demo</id>
+      <build>
+        <finalName>${artifactId}-demo-${pom.version}</finalName>
+      </build> 
+    </profile>
+    <profile>
+      <id>minimal</id>
+      <build>
+        <finalName>${artifactId}-minimal-${pom.version}</finalName>
+      </build> 
+    </profile>
+  </profiles>
+</project>

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-ant-installer-pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml?rev=729327&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml (added)
+++ portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml Wed Dec 24 08:05:34 2008
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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 xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <prerequisites>
+    <maven>2.0.9</maven>
+  </prerequisites>
+
+  <artifactId>jetspeed-mvn-installer-pom</artifactId>
+  <name>Jetspeed-2 Maven Invoker Configuration for installer's database</name>
+  <description>Jetspeed-2 Maven Invoker Configuration for installer's database</description>
+  <parent>
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <artifactId>jetspeed-2</artifactId>
+    <version>2.2-SNAPSHOT</version>
+  </parent>
+
+  <packaging>pom</packaging>
+
+  <properties>
+    <org.apache.portals.jetspeed.version>${pom.version}</org.apache.portals.jetspeed.version>
+    <org.apache.jetspeed.portal.context.name>jetspeed</org.apache.jetspeed.portal.context.name>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+      <version>${ant.version}</version>
+      <type>jar</type>
+    </dependency>
+
+    <dependency>
+      <artifactId>derby</artifactId>
+      <groupId>org.apache.derby</groupId>
+      <version>${org.apache.derby.version}</version>
+      <type>jar</type>
+    </dependency>
+
+    <dependency>
+      <groupId>tyrex</groupId>
+      <artifactId>tyrex</artifactId>
+      <version>${tyrex.version}</version>
+      <scope>runtime</scope>
+      <type>jar</type>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.portals.jetspeed-2</groupId>
+      <artifactId>jetspeed-ant-tasks</artifactId>
+      <version>${org.apache.portals.jetspeed.version}</version>
+      <type>jar</type>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.portals.jetspeed-2</groupId>
+      <artifactId>jetspeed-db-tools</artifactId>
+      <version>${org.apache.portals.jetspeed.version}</version>
+      <type>jar</type>
+      <exclusions>
+        <exclusion>
+          <groupId>javax.servlet</groupId>
+          <artifactId>servlet-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>javax.portlet</groupId>
+          <artifactId>portlet-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.pluto</groupId>
+          <artifactId>pluto-container-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>${pom.groupId}</groupId>
+          <artifactId>jetspeed-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>${pom.groupId}</groupId>
+          <artifactId>jetspeed-commons</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>${pom.groupId}</groupId>
+          <artifactId>jetspeed-cm</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-search</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-security</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-registry</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-id-generator</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-file-cache</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-locator</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-capability</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-profiler</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-page-manager</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-serializer</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <defaultGoal>package</defaultGoal>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.2</version>
+        <executions>
+
+          <!-- prepare database files to be zipped  -->
+          <execution>
+            <id>prepare-database-files</id>
+            <phase>generate-resources</phase>
+            <configuration>
+              <tasks>
+                <!-- copy database files from subproject to target  -->
+                <copy todir="${project.build.directory}/database">
+                  <fileset dir="etc/database"/>
+                </copy>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+
+          <!-- copy context.xml to database. NB this occurs after unpack-portal-resources -->
+          <execution>
+            <id>copy-context-to-database</id>
+            <phase>process-resources</phase>
+            <configuration>
+              <tasks>
+                <copy file="${project.build.directory}/resources/tomcat/context.xml"
+                  tofile="${project.build.directory}/database/${org.apache.jetspeed.portal.context.name}.xml"
+                />
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+
+        </executions>
+      </plugin>
+
+      <!-- extract needed resources from the portal-resources artifact -->
+      <plugin>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <artifactId>jetspeed-unpack-maven-plugin</artifactId>
+        <version>${org.apache.portals.jetspeed.version}</version>
+        <executions>
+          <execution>
+            <id>unpack-portal-resources</id>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+            <phase>generate-resources</phase>
+            <configuration>
+              <unpack>
+                <artifact>org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar</artifact>
+                <resources>
+                  <resource>
+                    <path>conf</path>
+                    <include>tomcat/context.xml</include>
+                    <destination>resources</destination>
+                  </resource>
+                  <resource>
+                    <path>@seed.path@</path>
+                    <include>j2-seed.xml</include>
+                    <destination>database</destination>
+                  </resource>
+                  <resource>
+                    <path>db-ojb</path>
+                    <destination>database/import/db-ojb</destination>
+                  </resource>
+                  <resource>
+                    <path>ddl</path>
+                    <destination>database</destination>
+                  </resource>
+                </resources>
+              </unpack>
+            </configuration>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.portals.jetspeed-2</groupId>
+            <artifactId>jetspeed-portal-resources</artifactId>
+            <version>${org.apache.portals.jetspeed.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+
+      <!-- assembly: zip database -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>zip-database</id>
+            <phase>package</phase>
+            <configuration>
+              <descriptors>
+                <descriptor>zip-database-descriptor.xml</descriptor>
+              </descriptors>
+              <finalName>database</finalName>
+              <appendAssemblyId>false</appendAssemblyId>
+            </configuration>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+
+  </build>
+
+</project>

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/jetspeed-installer/jetspeed-mvn-database-pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain



---------------------------------------------------------------------
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