Index: jetspeed-installer/zip-tomcat-portal-descriptor.xml =================================================================== --- jetspeed-installer/zip-tomcat-portal-descriptor.xml (revision 741077) +++ jetspeed-installer/zip-tomcat-portal-descriptor.xml (working copy) @@ -27,7 +27,7 @@ - target/${tomcat.version} + target/${tomcat.name} / Index: jetspeed-installer/etc/database/import/assembly/repository-datasource-spring.xml =================================================================== --- jetspeed-installer/etc/database/import/assembly/repository-datasource-spring.xml (revision 741077) +++ jetspeed-installer/etc/database/import/assembly/repository-datasource-spring.xml (working copy) @@ -1,63 +0,0 @@ - - - - - - - - - ${import.jdbc.driver.class} - - - ${import.jdbc.url} - - - ${import.jdbc.username} - - - ${import.jdbc.password} - - - - - - - - - - - - - JetspeedDS - - - - - - - Index: jetspeed-installer/etc/database/import/assembly/import-page-manager.xml =================================================================== --- jetspeed-installer/etc/database/import/assembly/import-page-manager.xml (revision 741077) +++ jetspeed-installer/etc/database/import/assembly/import-page-manager.xml (working copy) @@ -1,190 +0,0 @@ - - - - - - - JETSPEED-INF/ojb/page-manager-repository.xml - - false - - false - - - - - - - - - - org.apache.jetspeed.page.PageManager - - - - - - - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_REQUIRED,-org.apache.jetspeed.page.document.NodeException - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - PROPAGATION_SUPPORTS - - - - - - - - setPageManagerProxy - - - - - - - - - - /JETSPEED-INF/castor/page-mapping.xml - .psml - org.apache.jetspeed.om.page.psml.PageImpl - ${org.apache.jetspeed.page.import.pages} - - - - - /JETSPEED-INF/castor/page-mapping.xml - .link - org.apache.jetspeed.om.page.psml.LinkImpl - ${org.apache.jetspeed.page.import.pages} - - - - - /JETSPEED-INF/castor/page-mapping.xml - folder.metadata - org.apache.jetspeed.om.folder.psml.FolderMetaDataImpl - ${org.apache.jetspeed.page.import.pages} - - - - - /JETSPEED-INF/castor/page-mapping.xml - page.security - org.apache.jetspeed.om.page.psml.PageSecurityImpl - ${org.apache.jetspeed.page.import.pages} - - - - - - - - - - - - - - - - - - - - - - - - ${org.apache.jetspeed.page.import.pages} - - - - - - - - - - - false - - false - - - - - - - 10 - - - - 100 - - - - - - - 65536 - - - - P- - - - - - - - - - - - - Index: jetspeed-installer/etc/database/import/import.properties =================================================================== --- jetspeed-installer/etc/database/import/import.properties (revision 741077) +++ jetspeed-installer/etc/database/import/import.properties (working copy) @@ -1,16 +0,0 @@ -# comma-separated list of boot assemblies for Spring -boot.assemblies = repository-datasource-spring.xml -# comma-separated list of assemblies for Spring -assemblies = import-page-manager.xml, transaction.xml, interceptors.xml -# root folder to start exporting from -root.folder = / -# overwrite folders flag, set to true to replace existing folders -overwrite.folders = true -# overwrite pages flag, set to true to replace existing pages -overwrite.pages = true -# if this flag is true, will also try to import page.security -full.import = true -# source page manager Spring component name -source.page.manager = castorPageManager -# destination page manager Spring component name -dest.page.manager = dbPageManager Index: jetspeed-installer/etc/database/import/log4j.properties =================================================================== --- jetspeed-installer/etc/database/import/log4j.properties (revision 741077) +++ jetspeed-installer/etc/database/import/log4j.properties (working copy) @@ -1,34 +0,0 @@ -# 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. - -# ------------------------------------------------------------------------ -# -# Logging Configuration -# -# $Id$ -# -# ------------------------------------------------------------------------ - -log4j.rootLogger = WARN, console - -# -# Console -# -log4j.appender.console=org.apache.log4j.ConsoleAppender -log4j.appender.console.layout=org.apache.log4j.PatternLayout - -# Pattern to output the caller's file name and line number. -log4j.appender.console.layout.ConversionPattern=%5p: %m%n - Index: jetspeed-installer/etc/database/resources/spring-filter-key.properties =================================================================== --- jetspeed-installer/etc/database/resources/spring-filter-key.properties (revision 0) +++ jetspeed-installer/etc/database/resources/spring-filter-key.properties (revision 0) @@ -0,0 +1,17 @@ +# 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. + +# Use this to override settings in jetspeed.properties +spring.filter.key=${org.apache.jetspeed.spring.filter.key} Property changes on: jetspeed-installer\etc\database\resources\spring-filter-key.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Id Name: svn:eol-style + native Index: jetspeed-installer/etc/database/build.xml =================================================================== --- jetspeed-installer/etc/database/build.xml (revision 741077) +++ jetspeed-installer/etc/database/build.xml (working copy) @@ -72,33 +72,33 @@ - - - + + + - - - - - - + + + + + + Executing file ${basedir}/derby/create-schema.sql - + @@ -107,10 +107,7 @@ - - - - + - + @@ -136,7 +133,7 @@ Starting database generation - + @@ -146,7 +143,7 @@ - + @@ -158,27 +155,39 @@ - - + + + + + + + + + + - - - - + - - + + + + + + + + + Seeding the database - + @@ -187,14 +196,16 @@ - - - - + - + + + + + @@ -202,42 +213,30 @@ - - + - - - - - - - - - - - - - Importing psml into the database - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + @@ -199,20 +199,20 @@ - + - + - + Index: jetspeed-installer/etc/ant-installer/antinstall-config-min.xml =================================================================== --- jetspeed-installer/etc/ant-installer/antinstall-config-min.xml (revision 741077) +++ jetspeed-installer/etc/ant-installer/antinstall-config-min.xml (working copy) @@ -44,7 +44,7 @@ - + @@ -196,20 +196,20 @@ - + - + - + Index: jetspeed-installer/etc/ant-installer/build.xml =================================================================== --- jetspeed-installer/etc/ant-installer/build.xml (revision 741077) +++ jetspeed-installer/etc/ant-installer/build.xml (working copy) @@ -56,7 +56,7 @@ - + Index: jetspeed-installer/jetspeed-mvn-database-pom.xml =================================================================== --- jetspeed-installer/jetspeed-mvn-database-pom.xml (revision 741077) +++ jetspeed-installer/jetspeed-mvn-database-pom.xml (working copy) @@ -112,10 +112,18 @@ org.apache.portals.jetspeed-2 + jetspeed-rdbms + + + org.apache.portals.jetspeed-2 jetspeed-registry org.apache.portals.jetspeed-2 + jetspeed-sso + + + org.apache.portals.jetspeed-2 jetspeed-id-generator @@ -142,6 +150,14 @@ org.apache.portals.jetspeed-2 jetspeed-serializer + + org.springframework + spring + + + org.springframework + spring-ojb + @@ -179,9 +195,8 @@ - + tofile="${project.build.directory}/database/resources/${org.apache.jetspeed.portal.context.name}.xml" /> + run @@ -215,13 +230,9 @@ @seed.path@ j2-seed.xml - database + database/resources - db-ojb - database/import/db-ojb - - ddl database @@ -265,3 +276,4 @@ + Index: jetspeed-installer/jetspeed-mvn-tomcat-portal-pom.xml =================================================================== --- jetspeed-installer/jetspeed-mvn-tomcat-portal-pom.xml (revision 741077) +++ jetspeed-installer/jetspeed-mvn-tomcat-portal-pom.xml (working copy) @@ -38,10 +38,12 @@ pom + 6 + 6.0.18 + apache-tomcat-${tomcat.version.minor} ${pom.version} jetspeed - apache-tomcat-5.5.27 - ${project.build.directory}/${tomcat.version} + ${project.build.directory}/${tomcat.name} @@ -67,16 +69,13 @@ - + - - - - - + + @@ -145,6 +144,7 @@ ${org.apache.jetspeed.portal.home} ${org.apache.jetspeed.portal.context.name} + tomcat${tomcat.version.major} webapps/jetspeed/META-INF @@ -310,6 +310,7 @@ ${org.apache.jetspeed.portal.home} ${org.apache.jetspeed.portal.context.name} + tomcat${tomcat.version.major} webapps/jetspeed/META-INF Index: maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java =================================================================== --- maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java (revision 741077) +++ maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java (working copy) @@ -54,6 +54,10 @@ { private static final String DEPLOY_FACTORY_CLASS_NAME = "org.apache.jetspeed.tools.deploy.JetspeedDeployFactory"; + private static final String PROFILE_TOMCAT5 = "tomcat5"; + private static final String PROFILE_TOMCAT6 = "tomcat6"; + private static final String DEFAULT_PROFILE = PROFILE_TOMCAT5; + public static class Deployment { private String artifact; @@ -123,6 +127,11 @@ /** @parameter expression="${plugin.introducedDependencyArtifacts}" */ private Set pluginDependencyArtifacts; + /** + * @parameter + */ + private String profile; + private Artifacts artifacts; /* (non-Javadoc) @@ -135,27 +144,8 @@ { destMap.putAll(destinations); } - // init default for tomcat5.5 - if (!destMap.containsKey("system")) - { - destMap.put("system","common/endorsed"); - } - if (!destMap.containsKey("lib")) - { - destMap.put("lib","shared/lib"); - } - if (!destMap.containsKey("war")) - { - destMap.put("war", "webapps"); - } - if (!destMap.containsKey("deploy")) - { - destMap.put("deploy", ((String)destMap.get("war"))+"/"+portalName+"/WEB-INF/deploy"); - } - if (!destMap.containsKey("local")) - { - destMap.put("local", ((String)destMap.get("deploy"))+"/local"); - } + + initDefaultDestinations(destMap, (profile != null) ? profile : DEFAULT_PROFILE); File targetBaseDir = new File(this.targetBaseDir); if (targetBaseDir.exists() && targetBaseDir.isFile()) @@ -476,8 +466,8 @@ } } } - - private static String getValue(String value, String defaultValue) + + private static String getValue(String value, String defaultValue) { return value != null ? value : defaultValue; } @@ -653,4 +643,62 @@ } } } -} + + /** + * Initialize default destinations for a certain profile. + */ + private void initDefaultDestinations(Map destMap, String profile) throws MojoFailureException { + + if (!(profile.equals(PROFILE_TOMCAT5) || profile.equals(PROFILE_TOMCAT6))) { + throw new MojoFailureException("Cannot handle profile '" + profile + "', use '" + + PROFILE_TOMCAT5 + "' or '" + PROFILE_TOMCAT6 + "'"); + } + + if (profile.equals(PROFILE_TOMCAT5)) { + + if (!destMap.containsKey("system")) + { + destMap.put("system","common/endorsed"); + } + if (!destMap.containsKey("lib")) + { + destMap.put("lib","shared/lib"); + } + if (!destMap.containsKey("war")) + { + destMap.put("war", "webapps"); + } + if (!destMap.containsKey("deploy")) + { + destMap.put("deploy", ((String)destMap.get("war"))+"/"+portalName+"/WEB-INF/deploy"); + } + if (!destMap.containsKey("local")) + { + destMap.put("local", ((String)destMap.get("deploy"))+"/local"); + } + } + else if (profile.equals(PROFILE_TOMCAT6)) { + + if (!destMap.containsKey("system")) + { + destMap.put("system","lib"); + } + if (!destMap.containsKey("lib")) + { + destMap.put("lib","lib"); + } + if (!destMap.containsKey("war")) + { + destMap.put("war", "webapps"); + } + if (!destMap.containsKey("deploy")) + { + destMap.put("deploy", ((String)destMap.get("war"))+"/"+portalName+"/WEB-INF/deploy"); + } + if (!destMap.containsKey("local")) + { + destMap.put("local", ((String)destMap.get("deploy"))+"/local"); + } + } + } +}