portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r492423 [4/5] - in /portals/jetspeed-2/trunk: components/ components/portal/ components/portal/src/test/org/apache/jetspeed/aggregator/ components/registry/ components/security/src/java/org/apache/jetspeed/security/impl/ components/serializ...
Date Thu, 04 Jan 2007 06:31:49 GMT
Added: portals/jetspeed-2/trunk/maven-plugin/plugin-with-DDLUTILS.jelly
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/maven-plugin/plugin-with-DDLUTILS.jelly?view=auto&rev=492423
==============================================================================
--- portals/jetspeed-2/trunk/maven-plugin/plugin-with-DDLUTILS.jelly (added)
+++ portals/jetspeed-2/trunk/maven-plugin/plugin-with-DDLUTILS.jelly Wed Jan  3 22:31:48 2007
@@ -0,0 +1,1980 @@
+<!--
+THIS IS A COPY OF DDL UTILS PATCH APPLIED, and the actual PATCH included below
+This code is not ready for production usage and requires more thorough testing
+I would like to keep the patch around for when I have more time to investigate the issues
+PLEASE CONTACT taylor@apache.org for more information
+-->
+<?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: plugin.jelly 468237 2006-10-27 02:16:07Z taylor $
+-->
+
+<project default="java:jar" 
+         xmlns:j="jelly:core"
+         xmlns:define="jelly:define"
+         xmlns:maven="jelly:maven"
+         xmlns:ant="jelly:ant"
+         xmlns:util="jelly:util">
+
+  <!-- ====================================================== -->
+  <!-- ============== GENERATE NEW APPLICATION ============== -->
+  <!-- ====================================================== -->
+  
+  <goal name="j2:portal.genapp" prereqs="j2:_check.required.properties">
+            
+    <attainGoal name="j2:portal.copy.webapp"/>
+    <attainGoal name="j2:portal.conf.project"/>
+    <attainGoal name="j2:portal.conf.sql"/>
+    <attainGoal name="j2:portal.conf.ldap"/>
+    <attainGoal name="j2:portal.conf.ojb"/>
+    <attainGoal name="j2:portal.conf.jetspeed"/>
+    <attainGoal name="j2:portal.conf.tomcat"/>
+  </goal>
+  
+  <goal name="j2:portal.genapp.minimal" prereqs="j2:_check.required.properties">
+            
+    <attainGoal name="j2:portal.copy.webapp.minimal"/>
+    <attainGoal name="j2:portal.conf.project"/>
+    <attainGoal name="j2:portal.conf.sql"/>
+    <attainGoal name="j2:portal.conf.ldap"/>
+    <attainGoal name="j2:portal.conf.ojb"/>
+    <attainGoal name="j2:portal.conf.jetspeed"/>
+    <attainGoal name="j2:portal.conf.tomcat"/>
+  </goal>
+    
+  <goal name="j2:portal.copy.webapp" prereqs="j2:_check.required.properties">
+    <j:set var="portal.webapp.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.webapp.dir}"/>      
+    <mkdir dir="${portal.webapp.dir}"/>
+    <copy todir="${portal.webapp.dir}" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.plugin.root}/plugin-resources/webapp">
+        <exclude name="WEB-INF/conf/jetspeed.properties"/>
+      </fileset>
+    </copy>
+  </goal>
+  
+  <goal name="j2:portal.copy.webapp.minimal" prereqs="j2:_check.required.properties">
+    <j:set var="portal.webapp.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.webapp.dir}"/>      
+    <mkdir dir="${portal.webapp.dir}"/>
+    <copy todir="${portal.webapp.dir}" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.plugin.root}/plugin-resources/webapp">
+        <exclude name="WEB-INF/conf/jetspeed.properties"/>
+        <exclude name="WEB-INF/pages/**"/>     
+      </fileset>
+    </copy>
+	<copy todir="${portal.webapp.dir}" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.plugin.root}/plugin-resources/webapp">
+        <include name="WEB-INF/pages/Administrative/**"/>
+		<include name="WEB-INF/pages/page.security"/>           
+      </fileset>
+    </copy>
+  </goal>
+  
+  <goal name="j2:portal.conf.project" prereqs="j2:_check.required.properties">
+    <j:set var="portal.home.dir" value="${org.apache.jetspeed.portal.home}"/>
+    <mkdir dir="${portal.home.dir}"/>              
+
+    <filterset id="dependenciesFilterSet" begintoken="$" endtoken="}">
+      <filter token="{jetspeed.version" value="${jetspeed.version}"/>
+      <filter token="{pluto.version" value="${pluto.version}"/>
+      <filter token="{portlet.api.version" value="${portlet.api.version}"/>
+      <filter token="{servlet.api.version" value="${servlet.api.version}"/>
+      <filter token="{myfaces.version" value="${myfaces.version}"/>
+      <filter token="{spring.version" value="${spring.version}"/>
+      <filter token="{derby.version" value="${derby.version}"/>
+      <filter token="{portals.bridges.common.version" value="${portals.bridges.common.version}"/>
+      <filter token="{portals.bridges.frameworks.version" value="${portals.bridges.frameworks.version}"/>
+      <filter token="{portals.bridges.jsf.version" value="${portals.bridges.jsf.version}"/>
+      <filter token="{portals.bridges.perl.version" value="${portals.bridges.perl.version}"/>
+      <filter token="{portals.bridges.php.version" value="${portals.bridges.php.version}"/>
+      <filter token="{portals.bridges.struts.version" value="${portals.bridges.struts.version}"/>
+      <filter token="{portals.bridges.velocity.version" value="${portals.bridges.velocity.version}"/>
+      <filter token="{commons.logging.version" value="${commons.logging.version}"/>
+      <filter token="{log4j.version" value="${log4j.version}"/>
+      <filter token="{commons.logging.include" value="${commons.logging.include}"/>
+      <filter token="{log4j.include" value="${log4j.include}"/>
+      <filter token="{jta.include" value="${jta.include}"/>
+      <filter token="{derby.include" value="${derby.include}"/>
+    </filterset>
+
+    <!-- Note: keep already existing project-info.xml allowing custom modifications -->
+	<j:set var="copy.project_info.xml" value="true" />
+	<util:available file="${portal.home.dir}/project-info.xml"> 
+		 <j:set var="copy.project_info.xml" value="false" />
+	</util:available>
+	
+	<echo>${portal.home.dir}/project-info.xml does not exist?  ${copy.project_info.xml} </echo>
+	<j:if test="${copy.project_info.xml}">
+      <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/project-info.xml"
+            tofile="${portal.home.dir}/project-info.xml"
+            overwrite="false"
+            failonerror="true"/>
+    </j:if>
+    
+    <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/core-build.xml"
+          tofile="${portal.home.dir}/core-build.xml"
+          overwrite="true"
+          failonerror="true">
+      <filterset refid="dependenciesFilterSet"/>
+    </copy>
+    
+    <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/jetspeed-components.xml"
+          tofile="${portal.home.dir}/jetspeed-components.xml"
+          overwrite="true"
+          failonerror="true">
+      <filterset refid="dependenciesFilterSet"/>
+    </copy>
+
+    <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/full-portal.xml"
+          tofile="${portal.home.dir}/full-portal.xml"
+          overwrite="true"
+          failonerror="true">
+      <filterset refid="dependenciesFilterSet"/>
+    </copy>          
+
+    <!-- Note: keep existing project.xml allowing for custom modifications -->
+	<j:set var="copy.project.xml" value="true" />
+	<util:available file="${portal.home.dir}/project.xml"> 
+		 <j:set var="copy.project.xml" value="false" />
+	</util:available>
+	
+	<echo>${portal.home.dir}/project.xml does not exist?  ${copy.project.xml} </echo>
+	<j:if test="${copy.project.xml}">
+      <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/project.xml"
+            tofile="${portal.home.dir}/project.xml"
+            overwrite="false"
+            failonerror="true">
+        <filterset begintoken="@" endtoken="@">
+          <filter token="PORTAL_GROUPID" value="${org.apache.jetspeed.portal.groupId}"/>
+          <filter token="PORTAL_ARTIFACTID" value="${org.apache.jetspeed.portal.artifactId}"/>
+          <filter token="PORTAL_NAME" value="${org.apache.jetspeed.portal.name}"/>
+          <filter token="PORTAL_CURRENT_VERSION" value="${org.apache.jetspeed.portal.currentVersion}"/>
+        </filterset>
+      </copy>
+	</j:if>
+  </goal>
+ 
+
+  
+  <goal name="j2:portal.conf.ldap" prereqs="j2:_check.required.properties">
+    <j:set var="portal.ldap.src.dir" value="${org.apache.jetspeed.plugin.root}/plugin-resources/apacheds"/>      
+    <j:set var="portal.ldap.target.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.ldap.dir}"/>
+    
+    <delete dir="${portal.ldap.target.dir}" failonerror="false"/>
+    <mkdir dir="${portal.ldap.target.dir}"/>
+    
+    <copy todir="${portal.ldap.target.dir}" overwrite="true" verbose="true" failonerror="false" flatten="true">
+      <fileset dir="${portal.ldap.src.dir}" />
+    </copy>
+  </goal>
+  
+  <goal name="j2:portal.conf.ojb" prereqs="j2:_check.required.properties">
+    <j:set var="portal.target.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.target.dir}"/>      
+    <mkdir dir="${portal.target.dir}/WEB-INF/classes"/>
+    <copy todir="${portal.target.dir}/WEB-INF/classes" overwrite="true">
+      <fileset dir="${org.apache.jetspeed.plugin.root}/plugin-resources/db-ojb"/>
+    </copy>
+  </goal>
+  
+  <goal name="j2:portal.conf.jetspeed" prereqs="j2:_check.required.properties">
+    <j:set var="portal.target.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.target.dir}"/>      
+    <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/webapp/WEB-INF/conf/jetspeed.properties"
+          todir="${portal.target.dir}/WEB-INF/conf/" overwrite="true">
+      <filterset begintoken="@" endtoken="@">
+        <filter token="AUTODEPLOYMENT_SERVER" value="${org.apache.jetspeed.services.autodeployment.server}"/>
+        <filter token="AUTODEPLOYMENT_USER" value="${org.apache.jetspeed.services.autodeployment.user}"/>
+        <filter token="AUTODEPLOYMENT_PASSWORD" value="${org.apache.jetspeed.services.autodeployment.password}"/>
+       </filterset>
+       <!-- Below filter is special because this concerns a numeric property for which a non-numeric token results
+           in a test failure (TestSpringEngine)
+           This property therefore MUST remain defined EXACTLY as specified for this filter to be able to work
+       -->
+       <filterset begintoken="autodeployment.catalina.version.major" endtoken="5">
+           <filter token="="
+               value="autodeployment.catalina.version.major=${org.apache.jetspeed.catalina.version.major}"/>
+       </filterset>
+       <filterset begintoken="autodeployment.port" endtoken="8080">
+           <filter token="=" value="autodeployment.port=${org.apache.jetspeed.services.autodeployment.port}"/>
+       </filterset>
+    </copy>
+  </goal>
+  
+  <goal name="j2:portal.conf.tomcat" prereqs="j2:_check.required.properties">
+    <j:set var="portal.conf.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.conf.dir}"/>      
+    <mkdir dir="${portal.conf.dir}/tomcat"/>
+    <j:set var="catalina_version_major" value="${org.apache.jetspeed.catalina.version.major}"/>
+    <j:choose>
+      <j:when test="${catalina_version_major == '5.5'}">
+        <j:set var="context_file_source" value="jetspeed-tomcat-5.5.xml"/>
+      </j:when>
+      <j:otherwise>
+        <j:set var="context_file_source" value="jetspeed-tomcat-5.xml"/>
+      </j:otherwise>
+    </j:choose>
+    <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/conf/tomcat/${context_file_source}"
+          tofile="${portal.conf.dir}/tomcat/context.xml" overwrite="true">
+      <filterset begintoken="@" endtoken="@">
+        <filter token="CONTEXT" value="${org.apache.jetspeed.portal.artifactId}"/>
+        <filter token="USERNAME" value="${org.apache.jetspeed.production.database.user}"/>
+        <filter token="PASSWORD" value="${org.apache.jetspeed.production.database.password}"/>
+        <filter token="DRIVER" value="${org.apache.jetspeed.production.database.driver}"/>
+        <filter token="URL" value="${org.apache.jetspeed.production.database.url}"/>
+      </filterset>
+    </copy>
+  </goal>
+    
+ 
+
+  <!-- =========================================== -->
+  <!-- ============= LDAP MANAGEMENT ============= -->
+  <!-- =========================================== -->
+
+  <goal name="j2:start.ldap.server" prereqs="j2:_check.required.properties">
+    <j:set var="maven.start.ldap.message" value="Starting Apache LDAP"/>
+    <j:set var="org.apache.jetspeed.plugin.ldap.conf" 
+           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.ldap.dir}/apacheds-server.xml"/>
+    <attainGoal name="j2:_start.ldap"/>
+  </goal>
+
+  <!-- =============================================== -->
+  <!-- ========= JETSPEED PORTLET DEPLOYMENT ========= -->
+  <!-- =============================================== -->
+  
+  <goal name="j2:deploy">
+      <j:set var="j2.war.groupId" value="${plugin.groupId}"/>
+      <j:set var="j2.war.version" value="${jetspeed.version}"/>
+      <j:set var="isLocalWarDeploy" value="false"/>            
+      <attainGoal name="j2:warDeploy"/>
+  </goal>
+
+  <goal name="j2:localdeploy">
+      <j:set var="j2.war.groupId" value="${plugin.groupId}"/>
+      <j:set var="j2.war.version" value="${jetspeed.version}"/>
+      <j:set var="isLocalWarDeploy" value="true"/>
+      <attainGoal name="j2:warDeploy"/>
+  </goal>
+  
+  <goal name="j2:deploybridgewar">
+      <j:set var="j2.war.groupId" value="${bridges.groupId}"/>
+      <j:set var="j2.war.version" value="${portals.bridges.version}"/>
+      <attainGoal name="j2:warDeploy"/>
+  </goal>
+  
+  <!-- warDeploy allows you to deploy arbitrary wars to the portal deploy folder,
+       optionally downloading it from remote repositories if not available yet
+       Required properties to set:
+       - maven.war.final.name
+       - j2.war.groupId
+       - j2.war.version
+    -->
+  <goal name="j2:warDeploy">
+    <j:set var="depGroup" value="${j2.war.groupId}"/>
+    <j:set var="depType" value="wars"/>
+    <j:set var="depVersion" value="${j2.war.version}"/>
+    <j:set var="depName" value="${maven.war.final.name}-${depVersion}.war"/>
+    <j:if test="${depVersion.endsWith('SNAPSHOT')}">
+      <j:set var="depSnapshot" value="true"/>
+    </j:if>
+    <j:set var="online" value="${maven.mode.online}"/>
+    <j:if test="${online}">
+      <attainGoal name="j2:_check.dep"/>
+    </j:if>
+    <j:set var="warDeployDest" value="${org.apache.jetspeed.deploy.war.dir}/${maven.war.final.name}.war"/>
+    <j:if test='${isLocalWarDeploy == "true"}'>
+      <j:set var="warDeployDest" value="${org.apache.jetspeed.portal.dir}/WEB-INF/deploy/${maven.war.final.name}.war"/>
+    </j:if>    
+    <copy file="${maven.repo.local}/${depGroup}/${depType}/${depName}"
+          tofile="${warDeployDest}" 
+          overwrite="true"
+          failonerror="true"/>
+  </goal>
+
+
+  <goal name="j2:pam.layoutdeploy">
+    <j:set var="maven.war.final.name" value="jetspeed-layouts"/>
+    <attainGoal name="j2:localdeploy"/>
+  </goal>
+
+  <goal name="j2:pam.demodeploy">
+    <j:set var="maven.war.final.name" value="demo"/>
+    <attainGoal name="j2:deploy"/>
+  </goal>
+
+  <goal name="j2:pam.tsdeploy">
+    <j:set var="maven.war.final.name" value="testsuite"/>
+    <attainGoal name="j2:deploy"/>
+  </goal>
+
+  <goal name="j2:pam.jpetstoredeploy">
+    <j:set var="maven.war.final.name" value="jpetstore"/>
+    <attainGoal name="j2:deploybridgewar"/>
+  </goal>
+
+  <goal name="j2:pam.jsfdeploy">
+    <j:set var="maven.war.final.name" value="jsf-demo"/>
+    <attainGoal name="j2:deploybridgewar"/>
+  </goal>
+
+  <goal name="j2:pam.admindeploy">
+    <j:set var="maven.war.final.name" value="j2-admin"/>
+    <attainGoal name="j2:deploy"/>
+  </goal>
+
+  <goal name="j2:pam.phpdeploy">
+    <j:set var="maven.war.final.name" value="php"/>
+    <attainGoal name="j2:deploybridgewar"/>
+  </goal>
+
+  <goal name="j2:pam.perldeploy">
+    <j:set var="maven.war.final.name" value="perl"/>
+    <attainGoal name="j2:deploybridgewar"/>
+  </goal>
+
+  <goal name="j2:pam.rssdeploy">
+    <j:set var="maven.war.final.name" value="rss"/>
+    <attainGoal name="j2:deploy"/>
+  </goal>
+
+  <!-- ================================================= -->
+  <!-- ======== JETSPEED COMPONENT DEPLOYMENT ========== -->
+  <!-- ================================================= -->
+  <goal name="j2:jar.deploy">
+    <attainGoal name="jar:install"/>
+    <echo>Deploying ${pom.artifactId}-${jetspeed.version}.jar to ${org.apache.jetspeed.portal.dir}/WEB-INF/lib...</echo>
+    <copy file="${basedir}/target/${pom.artifactId}-${jetspeed.version}.jar"
+          todir="${org.apache.jetspeed.portal.dir}/WEB-INF/lib"
+          overwrite="true"
+          failonerror="true"/>
+  </goal>
+    
+  <goal name="j2:jar.deploy.shared">
+    <attainGoal name="jar:install"/>
+    <echo>Deploying ${pom.artifactId}-${jetspeed.version}.jar to ${org.apache.jetspeed.server.shared}...</echo>   
+    <copy file="${basedir}/target/${pom.artifactId}-${jetspeed.version}.jar" 
+          todir="${org.apache.jetspeed.server.shared}"
+          overwrite="true"
+          failonerror="true"/>
+  </goal>
+    
+  <!-- ============================================== -->
+  <!-- ============== PORTAL DEPLOYMENT ============= -->
+  <!-- ============================================== -->
+  <goal name="j2:copy.shared.deps">
+    <attainGoal name="j2:catalina.base.shared"/>
+    <attainGoal name="j2:catalina.shared"/>
+  </goal>
+  
+  <goal name="j2:remove.catalina.base.shared" description="Clean out old base jars necessary for common container">
+      <echo>Removing misc. old jars from Tomcat shared/lib</echo>
+      <delete quiet="true">
+        <fileset dir="${org.apache.jetspeed.server.shared}">
+          <include name="pluto-*.jar"/>
+          <include name="portals-bridges-common-*.jar"/>
+          <include name="derby-*.jar"/>
+        </fileset>
+      </delete>
+  </goal>
+  
+  <goal name="j2:remove.catalina.shared" description="Clean out old jars necessary for common container">
+      <echo>Removing old container jars from Tomcat shared/lib</echo>
+      <delete quiet="true">
+        <fileset dir="${org.apache.jetspeed.server.shared}">
+          <include name="jetspeed-commons-*.jar"/>
+          <include name="jetspeed-api-*.jar"/>
+          <include name="portlet-api-*.jar"/>
+        </fileset>
+      </delete>
+  </goal>
+  
+  <goal name="j2:catalina.base.shared" description="Copy all base jars necessary for common container" 
+        prereqs="j2:remove.catalina.base.shared">
+    <echo>Deploys misc. jars shared/lib to Tomcat</echo>
+    <echo>Copying from ${maven.repo.local} to ${org.apache.jetspeed.server.shared}...</echo>
+    <copy file="${maven.repo.local}/org.apache.pluto/jars/pluto-${pluto.version}.jar"
+          todir="${org.apache.jetspeed.server.shared}"/>
+    <copy file="${maven.repo.local}/${bridges.groupId}/jars/portals-bridges-common-${portals.bridges.common.version}.jar"
+          todir="${org.apache.jetspeed.server.shared}"/>
+    <copy file="${maven.repo.local}/org.apache.derby/jars/derby-${derby.version}.jar"
+          todir="${org.apache.jetspeed.server.shared}"/>
+  </goal>
+
+  <goal name="j2:catalina.shared" description="Copy all jars necessary for common container"
+        prereqs="j2:remove.catalina.shared">
+    <echo>Deploys container jars to shared/lib to Tomcat</echo>
+    <copy file="${maven.repo.local}/${plugin.groupId}/jars/jetspeed-commons-${jetspeed.version}.jar"
+          todir="${org.apache.jetspeed.server.shared}"/>
+    <copy file="${maven.repo.local}/${plugin.groupId}/jars/jetspeed-api-${jetspeed.version}.jar"
+          todir="${org.apache.jetspeed.server.shared}"/>
+    <copy file="${maven.repo.local}/portlet-api/jars/portlet-api-${portlet.api.version}.jar"
+          todir="${org.apache.jetspeed.server.shared}"/>
+  </goal>
+    
+    
+  <goal name="j2:portal.deploy">
+    <attainGoal name="j2:remove.wars"/>
+    <echo message="Deploying ${org.apache.jetspeed.portal.artifactId}"/>
+    <delete dir="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.artifactId}"/>
+    <copy file="${maven.repo.local}/${org.apache.jetspeed.portal.groupId}/wars/${org.apache.jetspeed.portal.artifactId}-${org.apache.jetspeed.portal.currentVersion}.war"
+          tofile="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.artifactId}.war"
+          verbose="true" />
+    <unwar src="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.artifactId}.war"
+           dest="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.artifactId}"/>
+
+    <j:set var="portal.conf.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.conf.dir}"/>      
+
+    <copy file="${portal.conf.dir}/tomcat/context.xml"
+          tofile="${org.apache.jetspeed.server.home}/conf/Catalina/localhost/${org.apache.jetspeed.portal.artifactId}.xml"
+          overwrite="true"/>
+
+    <attainGoal name="j2:catalina.base.shared"/>
+    <attainGoal name="j2:catalina.shared"/>
+  </goal>
+    
+  <goal name="j2:minDeploy">
+      <attainGoal name="j2:portal.deploy"/>
+      <attainGoal name="j2:pam.layoutdeploy"/>
+      <attainGoal name="j2:pam.admindeploy"/>
+  </goal>
+
+  <goal name="j2:nodbMinDeploy">
+      <attainGoal name="j2:portal.deploy"/>
+      <attainGoal name="j2:pam.layoutdeploy"/>
+      <attainGoal name="j2:pam.admindeploy"/>
+  </goal>
+  
+  <goal name="j2:fullDeploy">
+      <attainGoal name="j2:minDeploy"/>
+      <attainGoal name="j2:pam.demodeploy"/>
+      <attainGoal name="j2:pam.jsfdeploy"/>
+      <attainGoal name="j2:pam.phpdeploy"/>
+      <attainGoal name="j2:pam.perldeploy"/>
+      <attainGoal name="j2:pam.rssdeploy"/>
+      <attainGoal name="j2:pam.jpetstoredeploy"/>
+  </goal>
+
+  <goal name="j2:nodbfullDeploy">
+      <attainGoal name="j2:nodbMinDeploy"/>
+      <attainGoal name="j2:pam.demodeploy"/>
+      <attainGoal name="j2:pam.jsfdeploy"/>
+      <attainGoal name="j2:pam.phpdeploy"/>
+      <attainGoal name="j2:pam.perldeploy"/>
+      <attainGoal name="j2:pam.rssdeploy"/>
+      <attainGoal name="j2:pam.jpetstoredeploy"/>
+  </goal>
+
+  <!-- ============================================== -->
+  <!-- ============== PORTAL CLEAN UP ============= -->
+  <!-- ============================================== -->
+    
+  <goal name="j2:remove.wars">
+      <echo>Remove war files, make sure to shutdown server first...</echo>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.artifactId}"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.artifactId}.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/demo"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/demo.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/j2-admin"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/j2-admin.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/jsf-demo"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/jsf-demo.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/php"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/php.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/perl"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/perl.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/rss"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/rss.war"/>
+      <delete dir="${org.apache.jetspeed.deploy.war.dir}/jpetstore"/>
+      <delete file="${org.apache.jetspeed.deploy.war.dir}/jpetstore.war"/>
+      <j:set var="context_dir" value="${org.apache.jetspeed.server.home}/conf/Catalina/localhost"/>
+      <delete file="${context_dir}/${org.apache.jetspeed.portal.artifactId}.xml"/>
+      <delete file="${context_dir}/j2-admin.xml"/>
+      <delete file="${context_dir}/jpetstore.xml"/>
+  </goal>
+  
+  <!-- ============================================= -->
+  <!-- ============== GETTING STARTED ============== -->
+  <!-- ============================================= -->
+  
+  <goal name="j2:doStart">
+
+    <maven:property name="deployType" defaultValue="j2:fullDeploy"/>
+    <maven:property name="recreateDB" defaultValue="true"/>
+
+    <j:if test="${recreateDB}">
+      <attainGoal name="j2:db.recreate"/>
+    </j:if>
+
+    <attainGoal name="j2:remove.wars"/>
+      
+    <!-- Dependency copying -->
+    <attainGoal name="j2:copy.shared.deps"/>
+
+    <attainGoal name="${deployType}"/>
+  </goal>
+
+  <goal name="j2:quickStart" description="Creates the production DB and calls portal/maven j2:fullDeploy">
+    <j:set var="deployType" value="j2:fullDeploy"/>
+    <attainGoal name="j2:doStart"/>
+  </goal>
+
+  <goal name="j2:nodbQuickStart" description="Don't create a new production DB but call portal/maven j2:fullDeploy">
+    <j:set var="deployType" value="j2:nodbfullDeploy"/>
+    <j:set var="recreateDB" value="false"/>
+    <attainGoal name="j2:doStart"/>
+  </goal>
+
+  <goal name="j2:minStart" description="Creates the production DB and calls portal/maven j2:minDeploy">
+    <j:set var="deployType" value="j2:minDeploy"/>
+    <attainGoal name="j2:doStart"/>
+  </goal>
+
+  <goal name="j2:nodbMinStart" description="Don't create a new production DB but call portal/maven j2:minDeploy">
+    <j:set var="deployType" value="j2:nodbMinDeploy"/>
+    <j:set var="recreateDB" value="false"/>
+    <attainGoal name="j2:doStart"/>
+  </goal>
+    
+  <!-- ================================================= -->
+  <!-- ============= DEVELOPMENT UTILITIES ============= -->
+  <!-- ================================================= -->
+  
+	  <goal name="j2:deployDecorations">
+		<copy todir="${org.apache.jetspeed.portal.dir}/decorations" >
+	  		<fileset dir="${basedir}/src/webapp/decorations" />
+	  	</copy> 
+	  </goal>	
+	  
+	  <goal name="j2:deployTemplates">
+	  	<copy todir="${org.apache.jetspeed.portal.dir}/WEB-INF/templates" >
+	  		<fileset dir="${basedir}/src/webapp/WEB-INF/templates" />
+	  	</copy>  
+	  </goal>	
+	  
+	  <goal name="j2:deployPages">
+	  	<copy todir="${org.apache.jetspeed.portal.dir}/WEB-INF/pages" >
+	  		<fileset dir="${basedir}/src/webapp/WEB-INF/pages" />
+	  	</copy>  
+	  </goal>	
+	    
+
+  <!-- ================================================= -->
+  <!-- ============== INSTALLER ============== -->
+  <!-- ================================================= -->
+	  <goal name="j2:buildMultiDbSQL" >
+	     <echo>j2:buildMultiDbSQL DEPRECATED ${sql.src.path}...</echo>
+	
+	  </goal>
+	
+	  <goal name="j2:buildDerbyInstaller">
+	    <ant:property name="install.name" value="Jetspeed2.0-derby" /> 
+	    <ant:copy file="${basedir}/installer2/antinstall-config-derby.xml" tofile="${basedir}/installer2/antinstall-config.xml" overwrite="true" />
+	    <ant:ant dir="${basedir}/installer2" antfile="build-installer.xml" target="selfextract" />
+	  </goal> 
+	 
+	  <goal name="j2:buildMultiInstaller">
+	    <attainGoal name="j2:buildMultiDbSQL" />
+	    <ant:property name="install.name" value="Jetspeed2.0-MultiDB" />
+	    <ant:copy file="${basedir}/installer2/antinstall-config-multi.xml" tofile="${basedir}/installer2/antinstall-config.xml" overwrite="true" />
+	    <ant:ant dir="${basedir}/installer2" antfile="build-installer.xml" target="selfextract" />
+	  </goal>
+	 
+	  <goal name="j2:cleanInstaller">
+	     <ant:delete file="${basedir}/installer2/antinstall-config.xml" />
+	     <ant:ant dir="${basedir}/installer2" antfile="build-installer.xml" target="clean" />
+	  </goal>
+
+
+
+
+
+  <!-- ================================================= -->
+  <!-- ============== DATABASE CONFIGURATION ============== -->
+  <!-- ================================================= -->
+
+	 <!--
+	 		Configure the Serializer environment:
+	 		- recreate the schema and seeddata directories and custom directories underneath.
+	 		- copy source schema and seed files 
+	 		- repeat for user (from ${basedir}/src/sql and ="${basedir}/src/schema respectively) 
+	   -->
+	  <goal name="j2:portal.conf.sql" prereqs="j2:_check.required.properties">
+		<!-- copy seed data -->
+	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}"/>
+	    <j:set var="script_source" value="${org.apache.jetspeed.plugin.root}/plugin-resources/sql"/>
+	    <attainGoal name="j2:_copy.scripts.sql"/>
+	
+		<!-- copy custom seed data  -->
+	<j:if test="${basedir}/src/sql">
+	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/custom"/>
+	    <j:set var="script_source" value="${basedir}/src/sql"/>
+	    <attainGoal name="j2:_copy.scripts.sql"/>
+    </j:if>    
+	  
+	
+		<!-- copy schema description -->
+	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema"/>
+	    <j:set var="script_source" value="${org.apache.jetspeed.plugin.root}/plugin-resources/schema"/>
+	    <attainGoal name="j2:_copy.scripts.sql"/>
+	
+		<!-- copy custom schema extension  -->
+	<j:if test="${basedir}/src/schema">
+	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema/custom"/>
+	    <j:set var="script_source" value="${basedir}/src/schema"/>
+	    <attainGoal name="j2:_copy.scripts.sql"/>
+    </j:if>    
+	  </goal>
+
+
+
+
+  <!-- ================================================= -->
+  <!-- ============== DATABASE MANAGEMENT ============== -->
+  <!-- ================================================= -->
+
+	  <goal name="j2:start.production.server" prereqs="j2:_check.required.properties">
+	    <j:set var="maven.start.hsql.message" value="Production/Deployment Database"/>
+	    <j:set var="org.apache.jetspeed.plugin.hsql.db" 
+	           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.db.dir}/hsql/Production"/>
+	    <attainGoal name="j2:_start.hsql"/>
+	  </goal>
+	  
+	  <goal name="j2:start.test.server" prereqs="j2:_check.required.properties">
+	    <j:set var="maven.start.hsql.message" value="Testing Database"/>
+	    <j:set var="org.apache.jetspeed.plugin.hsql.db" 
+	           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.db.dir}/hsql/Test"/>
+	    <attainGoal name="j2:_start.hsql"/>
+	  </goal>
+  
+  <!-- ============================================= -->
+  <!-- ============== DATABASE CREATE ============== -->
+  <!-- ============================================= -->
+
+	  <goal name="j2:db.create.test">
+	    <attainGoal name="j2:_db.test.properties"/>
+	    <j:set var="DDLDROP" value="TRUE"/>
+	    <attainGoal name="j2:_db.create"/>
+	    <attainGoal name="j2:_db.entities"/>
+   	  </goal>
+
+	  <goal name="j2:db.create.production" >
+	    <attainGoal name="j2:_db.production.properties"/>
+	    <j:set var="DDLDROP" value="TRUE"/>
+	    <attainGoal name="j2:_db.create"/>
+	    <attainGoal name="j2:_db.entities"/>
+	  </goal>
+
+	  <goal name="j2:db.update.test">
+	    <attainGoal name="j2:_db.test.properties"/>
+	    <j:set var="DDLDROP" value=""/>
+	    <attainGoal name="j2:_db.create"/>
+	  </goal>
+
+	  <goal name="j2:db.update.production" >
+	    <attainGoal name="j2:_db.production.properties"/>
+	    <j:set var="DDLDROP" value=""/>
+	    <attainGoal name="j2:_db.create"/>
+	  </goal>
+
+	  <goal name="j2:db.recreate" prereqs="j2:portal.conf.sql">
+	    <attainGoal name="j2:db.create.production"/>
+	  </goal>
+
+  <!-- ============================================= -->
+  <!-- ============== DATABASE POPULATE ============== -->
+  <!-- ============================================= -->
+    
+		<goal name="j2:db.user.scripts.production">
+			<attainGoal name="j2:_db.production.properties"/>
+			<echo>Running user-defined SQL scripts...</echo> 
+			<!-- if there is an order file, use it -->
+			<j:set var="DDLORDER" value="${torque.schema.sql.order}"/>
+			<j:set var="DDLFILES" value="${basedir}/src/sql"/>
+			<attainGoal name="j2:_db.runDDL"/>
+		</goal>
+	    
+		<goal name="j2:db.entities">
+			<attainGoal name="j2:_db.production.properties"/>
+			<attainGoal name="j2:_db.entities"/>
+		</goal>
+    
+
+  <!-- ================================================= -->
+  <!-- ================= PLUGIN INTERNAL =============== -->
+  <!-- ================================================= -->
+
+
+
+		<goal name="j2:_db.entities">
+			<echo>Running JETSPEED seed scripts...</echo> 
+			<!-- if there is an order file, use it -->
+			<j:set var="DATAFILE" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/${org.apache.jetspeed.portal.seed.data}"/>
+			<attainGoal name="j2:_db.seed"/>
+		</goal>
+  
+  
+  <!-- ================= Properties =============== -->
+	  <goal name="j2:_check.required.property">
+	    <fail message="Required property ${required.property} undefined. See http://portals.apache.org/jetspeed-2/getting-started.html."
+	          unless="${required.property}"/>
+	  </goal>
+	
+	  <goal name="j2:_check.required.properties" description="Check if the required properties are defined">
+	    <j:if test="${_requiredPropertiesChecked == null}">
+	      <j:set var="_requiredPropertiesChecked" value="true"/>      
+	      <j:set var="required.property" value="org.apache.jetspeed.portal.home"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.portal.groupId"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.portal.artifactId"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.portal.name"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.portal.currentVersion"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.server.home"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.catalina.version.major"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.server.shared"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.deploy.war.dir"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.services.autodeployment.user"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	      <j:set var="required.property" value="org.apache.jetspeed.services.autodeployment.password"/>
+	      <attainGoal name="j2:_check.required.property"/>
+	    </j:if>
+	  </goal>
+	
+	  <goal name="j2:_set.rdbms.props">
+	    <echo message="GOAL j2:_set.rdbms.props Deprecated"/>
+	   </goal>
+
+  <!-- ================= Database related internal functions =============== -->
+
+	  <!-- DEPRECATED -->
+  
+		  <goal name="j2:_generate.sql">
+		    <echo message="GOAL j2:__generate.sql Deprecated"/>
+		  </goal>
+		  <goal name="j2:_copy.rdbms.sql.scripts" >
+		    <echo message="GOAL j2:_copy.rdbms.sql.scripts Deprecated"/>
+		  </goal>
+		  <goal name="j2:process.all.scripts.in.path" >
+		    <echo>j2:process.all.scripts.in.path DEPRECATED ${sql.src.path}...</echo>
+		  </goal>
+		  <goal name="j2:_process.all.scripts.in.path" >
+		    <echo>j2:_process.all.scripts.in.path DEPRECATED ${sql.src.path}...</echo>
+		  </goal>
+		  <goal name="j2:_db.execute">
+		    <echo>j2:_db.execute - Deprecated</echo>
+		  </goal>
+
+	  <!-- START HSQL -->
+    
+		  <goal name="j2:_start.hsql">
+		    <echo message="===================================="/>
+		    <echo message="${maven.start.hsql.message}"/>
+		    <echo message="===================================="/>
+		    <java classname="org.hsqldb.Server" fork="yes">
+		      <classpath>
+		        <pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
+		      </classpath>
+		      <arg value="-database"/>
+		      <arg value="${org.apache.jetspeed.plugin.hsql.db}"/>
+		      <arg value="-port"/>
+		      <arg value="9001"/>
+		      <arg value="-silent"/>
+		      <arg value="true"/>
+		      <arg value="-trace"/>
+		      <arg value="true"/>
+		    </java>
+		  </goal>
+
+
+    
+	  <!-- Set DB PROPERTIES -->
+    
+		  <goal name="j2:_db.test.properties">
+		    <j:set var="org.apache.jetspeed.database.default.name" value="${org.apache.jetspeed.test.database.default.name}"/>
+		    <j:set var="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.test.database.url}"/>
+		    <j:set var="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.test.database.driver}"/>
+		    <j:set var="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.test.database.user}"/>
+		    <j:set var="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.test.database.password}"/>
+		    <j:set var="org.apache.jetspeed.jdbc.drivers.path" value="${org.apache.jetspeed.test.jdbc.drivers.path}"/>
+		  </goal>
+		
+		  <goal name="j2:_db.production.properties">
+		    <j:set var="org.apache.jetspeed.database.default.name" value="${org.apache.jetspeed.production.database.default.name}"/>
+		    <j:set var="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.production.database.url}"/>
+		    <j:set var="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.production.database.driver}"/>
+		    <j:set var="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.production.database.user}"/>
+		    <j:set var="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.production.database.password}"/>
+		    <j:set var="org.apache.jetspeed.jdbc.drivers.path" value="${org.apache.jetspeed.production.jdbc.drivers.path}"/>
+		  </goal>
+
+	  <!-- CREATE/DELETE DB -->
+  
+		  <goal name="j2:_db.create">
+		        <!-- create base first to avoid cross reference conflict -->
+		        <j:set var="DDLORDER" value="${torque.schema.sql.order}"/>
+		        <j:set var="DDLFILES" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema"/>
+		        <attainGoal name="j2:_db.runDDL"/>
+		        <j:set var="DDLFILES" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema/custom"/>
+			    <j:set var="DDLDROP" value=""/>
+		        <attainGoal name="j2:_db.runDDL"/>
+		  </goal>
+    
+
+	
+	  <!-- Helper function -->
+
+		  <goal name="j2:_copy.scripts.sql">
+		    <delete dir="${script_target}" failonerror="false"/>
+		    <mkdir dir="${script_target}"/>
+		    <copy todir="${script_target}" overwrite="true" verbose="true" failonerror="false" flatten="true">
+		      <fileset dir="${script_source}">
+		        <include name="*.xml"/>
+		      </fileset>
+		    </copy>        
+		  </goal>
+
+
+
+	  <!-- ============== DDL-Serializer ============== -->
+		
+			<goal name='j2:_db.runDDL'>
+			<echo> CALLING DDLUTIL </echo>
+			<j:choose>
+        		<j:when test='${empty(DDLDROP)}'>
+		            <j:set var="argdrop" value=""/>   
+    		    </j:when>
+        		<j:otherwise>
+				  <j:set var="argdrop" value="-R"/>  
+		        </j:otherwise>
+		    </j:choose>
+			
+			<j:choose>
+        		<j:when test='${empty(DDLEXCLUDE)}'>
+		            <j:set var="argexclude" value=""/>   
+    		    </j:when>
+        		<j:otherwise>
+				  <j:set var="argexclude" value="-x ${DDLEXCLUDE}"/>  
+		        </j:otherwise>
+		    </j:choose>
+
+			<j:choose>
+        		<j:when test='${empty(DDLORDER)}'>
+		            <j:set var="argorder" value=""/>   
+    		    </j:when>
+        		<j:otherwise>
+				  <j:set var="argorder" value="-s ${DDLORDER}"/>  
+		        </j:otherwise>
+		    </j:choose>
+			<echo> 
+				running DDL with directory: ${DDLFILES} , arguments: ${argexclude} ${argorder} ${argdrop}  databaseURL: ${org.apache.jetspeed.database.url}
+			</echo>
+				<java classname="org.apache.jetspeed.serializer.JetspeedDDLApplication" fork="yes">
+				  <classpath>
+				    <path refid="maven.dependency.classpath"/>
+				    <pathelement path="${maven.build.dest}"/>
+				    <pathelement path="${basedir}/etc/log4j/log4j.properties"/>
+			        <pathelement path="${org.apache.jetspeed.plugin.root}"/>
+				    <pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>                          
+				  </classpath> 
+				    <arg line="-I ${DDLFILES} ${argexclude} ${argorder}  ${argdrop} -dc ${org.apache.jetspeed.database.driver} -ds ${org.apache.jetspeed.database.url} -du ${org.apache.jetspeed.database.user} -dp ${org.apache.jetspeed.database.password}  -dn ${org.apache.jetspeed.database.default.name}"/>  
+				</java>
+			</goal>
+				
+	  <!-- ============== Data-Serializer for seed data============== -->
+		    <goal name='j2:_db.seed'>
+		    	<!-- ensure we have valid ojb properties -->
+			   <j:set var="portal.target.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.target.dir}"/>      
+				<j:set var="portal.webapp.dir.assembly" value="${portal.target.dir}/WEB-INF/assembly/"/>      
+
+		     <j:set var="temp.assembly.dir" value="${org.apache.jetspeed.portal.sql.dir}/assembly"/>      
+
+			<echo> j2:_db.seed with -b ${temp.assembly.dir}/boot/ -c ${temp.assembly.dir}/ </echo>
+
+
+		    <mkdir dir="${temp.assembly.dir}"/>
+		
+			<copy todir="${temp.assembly.dir}" overwrite="true" failonerror="true">
+		      <fileset dir="${portal.webapp.dir.assembly}">
+		        <include name="security*.xml"/>
+				<include name="capabilities.xml"/>           
+				<include name="prefs.xml"/>           
+				<include name="profiler.xml"/>           
+				<include name="transaction.xml"/>           
+		      </fileset>
+		     </copy>
+		
+		    <mkdir dir="${temp.assembly.dir}/boot"/>
+		
+			<copy todir="${temp.assembly.dir}/boot" overwrite="true" failonerror="true">
+		      <fileset dir="${portal.webapp.dir.assembly}/boot">
+		        <include name="*.xml"/>
+		      </fileset>
+		      </copy>
+
+				<echo> running _db.seed with data: ${DATAFILE}  arguments: -b ${temp.assembly.dir}/boot/ -c ${temp.assembly.dir}/  database-url: ${org.apache.jetspeed.database.url}</echo>
+		    	
+		        <java classname="org.apache.jetspeed.serializer.JetspeedSerializerApplication" fork="yes">
+		          <classpath>
+		            <path refid="maven.dependency.classpath"/>
+		            <pathelement path="${portal.target.dir}/WEB-INF/classes"/>
+		            <pathelement path="${maven.build.dest}"/>
+			        <pathelement path="${org.apache.jetspeed.plugin.root}"/>
+		            <pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>                          
+		          </classpath>
+		            <arg line="-I ${DATAFILE} -b ${temp.assembly.dir}/boot/ -c ${temp.assembly.dir}/ -dc ${org.apache.jetspeed.database.driver} -ds ${org.apache.jetspeed.database.url} -du ${org.apache.jetspeed.database.user} -dp ${org.apache.jetspeed.database.password}"/>  
+		        </java>
+		    </goal>
+
+
+  <!-- ================= END Database related internal functions =============== -->
+
+  <!-- ================= LDAP related internal functions =============== -->
+		  <goal name="j2:_start.ldap">
+		    <echo message="===================================="/>
+		    <echo message="${maven.start.ldap.message}"/>
+		    <echo message="===================================="/>
+		    <delete dir="target/apacheds/logs"/>
+		    <mkdir dir="target/apacheds/logs"/>
+		    <echo file="target/apacheds/logs/apacheds.log">${maven.start.ldap.message}</echo>
+		    <java classname="org.apache.ldap.server.ServerMain" fork="yes">
+		      <classpath>
+		        <pathelement path="${plugin.getDependencyPath('directory:apacheds-main')}"/>
+		      </classpath>
+		      <arg value="${org.apache.jetspeed.plugin.ldap.conf}"/>
+		    </java>
+		  </goal>
+    
+		  <!-- Check for availability of a dependency in the local repository and download it from the remote repo(s)
+		       if not found or a snapshot.
+		       Taken from the maven-plugin-plugin 1.5.2.
+		   -->
+		  <goal name="j2:_check.dep">
+		    <util:file var="localFile" name="${maven.repo.local}/${depGroup}/${depType}/${depName}" /> 
+		    <j:if test="${!localFile.exists()}">
+		      <j:set var="nolocalFile" value="true"/>
+		    </j:if>       
+		    <j:if test="${depSnapshot || nolocalFile}">
+		      <j:set var="depFullname" value="${depGroup}/${depType}/${depName}"/>
+		      <echo> fullName is ${depFullname}</echo>
+		      <ant:mkdir dir="${maven.repo.local}/${depGroup}/${depType}" />
+		      <j:set var="repoList">${maven.repo.remote}</j:set>
+		      <util:tokenize var="repos" delim=",">${repoList.trim()}</util:tokenize>
+		      <j:forEach var="repo" items="${repos}">
+		        <echo>repo is '${repo}'</echo>
+		        <j:set var="remoteFile" value="${repo}/${depFullname}" />
+		        <echo>trying to download ${remoteFile}</echo>
+		        <j:catch var="ex">
+		          <j:invokeStatic var="dummy" method="getFile" className="org.apache.maven.util.HttpUtils">
+		            <j:arg type="java.lang.String" value="${remoteFile}" />
+		            <j:arg type="java.io.File" value="${localFile}"/>
+		            <j:arg type="boolean" value="false"/>
+		            <j:arg type="boolean" value="true"/>
+		            <j:arg type="java.lang.String" value="${maven.proxy.host}" />
+		            <j:arg type="java.lang.String" value="${maven.proxy.port}" />
+		            <j:arg type="java.lang.String" value="${maven.proxy.username}" />
+		            <j:arg type="java.lang.String" value="${maven.proxy.password}" />
+		            <j:arg type="boolean" value="false"/>
+		          </j:invokeStatic>
+		        </j:catch>
+		        <j:break test="${localFile.exists()}"/>
+		      </j:forEach>
+		    </j:if>
+		    <j:set var="downloaded" value="${localFile.exists()}"/>
+		    <j:if test="${!downloaded}">
+		      <ant:fail message="Unable to download ${depFullname}" />    
+		    </j:if>    
+		  </goal>
+
+  <!-- ================= END LDAP related internal functions =============== -->
+
+
+
+
+</project>
+
+<!-- THE PATCH -->
+Index: maven-plugin/plugin.jelly
+===================================================================
+--- maven-plugin/plugin.jelly	(revision 485018)
++++ maven-plugin/plugin.jelly	(working copy)
+@@ -160,35 +160,7 @@
+ 	</j:if>
+   </goal>
+  
+-  <goal name="j2:portal.conf.sql" prereqs="j2:_check.required.properties">
+-    <j:set var="portal.sql.src.dir" value="${org.apache.jetspeed.plugin.root}/plugin-resources/sql"/>
+-    <j:set var="portal.sql.target.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}"/>
+ 
+-    <delete dir="${portal.sql.target.dir}" failonerror="false"/>
+-    <mkdir dir="${portal.sql.target.dir}"/>
+-          
+-    <copy todir="${portal.sql.target.dir}" overwrite="true" verbose="true" failonerror="false" flatten="true">
+-      <fileset dir="${portal.sql.src.dir}">
+-        <include name="*.sql"/>
+-      </fileset>
+-    </copy>        
+-               
+-    <j:set var="org.apache.jetspeed.target.rdbms" value="${org.apache.jetspeed.production.database.default.name}"/>
+-    <attainGoal name="j2:_set.rdbms.props"/>
+-    <attainGoal name="j2:_generate.sql"/>
+-    <attainGoal name="j2:_copy.rdbms.sql.scripts"/>
+-    
+-    <j:if test="${org.apache.jetspeed.use.test.database}">    
+-      <j:set var="test_db" value="${org.apache.jetspeed.test.database.default.name}"/>
+-      <j:set var="prod_db" value="${org.apache.jetspeed.production.database.default.name}"/>
+-      <j:if test="${prod_db != test_db}">
+-        <j:set var="org.apache.jetspeed.target.rdbms" value="${org.apache.jetspeed.test.database.default.name}"/>
+-        <attainGoal name="j2:_set.rdbms.props"/>
+-        <attainGoal name="j2:_generate.sql"/>
+-        <attainGoal name="j2:_copy.rdbms.sql.scripts"/>
+-      </j:if>
+-    </j:if>  
+-  </goal>
+   
+   <goal name="j2:portal.conf.ldap" prereqs="j2:_check.required.properties">
+     <j:set var="portal.ldap.src.dir" value="${org.apache.jetspeed.plugin.root}/plugin-resources/apacheds"/>      
+@@ -257,82 +229,9 @@
+     </copy>
+   </goal>
+     
+-  <!-- ================================================= -->
+-  <!-- ============== DATABASE MANAGEMENT ============== -->
+-  <!-- ================================================= -->
++ 
+ 
+-  <goal name="j2:start.production.server" prereqs="j2:_check.required.properties">
+-    <j:set var="maven.start.hsql.message" value="Production/Deployment Database"/>
+-    <j:set var="org.apache.jetspeed.plugin.hsql.db" 
+-           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.db.dir}/hsql/Production"/>
+-    <attainGoal name="j2:_start.hsql"/>
+-  </goal>
+-  
+-  <goal name="j2:start.test.server" prereqs="j2:_check.required.properties">
+-    <j:set var="maven.start.hsql.message" value="Testing Database"/>
+-    <j:set var="org.apache.jetspeed.plugin.hsql.db" 
+-           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.db.dir}/hsql/Test"/>
+-    <attainGoal name="j2:_start.hsql"/>
+-  </goal>
+-  
+-  <!-- ============================================= -->
+-  <!-- ============== DATABASE CREATE ============== -->
+-  <!-- ============================================= -->
+-
+-  <goal name="j2:db.create.test">
+-    <attainGoal name="j2:_db.test.properties"/>
+-    <attainGoal name="j2:_db.drop"/>
+-    <attainGoal name="j2:_db.create"/>
+-  </goal>
+-
+-  <goal name="j2:db.create.production" >
+-    <attainGoal name="j2:_db.production.properties"/>
+-    <attainGoal name="j2:_db.drop"/>
+-    <attainGoal name="j2:_db.create"/>
+-  </goal>
+-
+-  <goal name="j2:db.recreate" prereqs="j2:portal.conf.sql">
+-    <attainGoal name="j2:db.create.production"/>
+-  </goal>
+-    
+-  <goal name="j2:db.user.scripts.production" >
+-     <attainGoal name="j2:_db.production.properties"/>         
+-     <echo>Running user-defined SQL scripts...</echo>   
+-     <j:set var="sql.src.path" value="${basedir}/src/sql"/>
+-     <j:set var="database.arg.onerror" value="abort"/> 
+-     <j:set var="process.database.script.goal" value="j2:_db.execute"/>
+-     <attainGoal name="j2:_process.all.scripts.in.path"/>   
+-  </goal>    
+-    
+-  <goal name="j2:db.entities">
+-    <attainGoal name="j2:_db.production.properties"/>
+-    <j:set var="org.apache.jetspeed.target.rdbms" value="${org.apache.jetspeed.production.database.default.name}"/>
+-    <attainGoal name="j2:_set.rdbms.props"/>
+-    <j:set var="portal.sql.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}"/>
+-    <j:set var="database.arg.script" value="${portal.sql.dir}/populate-userinfo-for-default-psml.sql"/>
+-    <util:available file="${portal.sql.dir}/${org.apache.jetspeed.target.rdbms}/populate-userinfo-for-default-psml.sql">
+-      <j:set var="database.arg.script"
+-             value="${portal.sql.dir}/${org.apache.jetspeed.target.rdbms}/populate-userinfo-for-default-psml.sql"/>
+-    </util:available>
+-     <j:set var="database.arg.onerror" value="abort"/> 
+-    <attainGoal name="j2:_db.execute"/>
+-  </goal>
+-    
+   <!-- =========================================== -->
+-  <!-- ============== DATABASE DROP ============== -->
+-  <!-- =========================================== -->
+-    
+-    <goal name="j2:db.drop.test">
+-        <attainGoal name="j2:_db.test.properties"/>
+-        <attainGoal name="j2:_db.drop"/>
+-    </goal>
+-
+-    <goal name="j2:db.drop.production">
+-        <attainGoal name="j2:_db.production.properties"/>
+-        <attainGoal name="j2:_db.drop"/>
+-    </goal>
+-
+-  <!-- =========================================== -->
+   <!-- ============= LDAP MANAGEMENT ============= -->
+   <!-- =========================================== -->
+ 
+@@ -541,7 +440,6 @@
+       <attainGoal name="j2:portal.deploy"/>
+       <attainGoal name="j2:pam.layoutdeploy"/>
+       <attainGoal name="j2:pam.admindeploy"/>
+-      <attainGoal name="j2:db.entities"/>
+   </goal>
+ 
+   <goal name="j2:nodbMinDeploy">
+@@ -645,401 +543,463 @@
+   <!-- ============= DEVELOPMENT UTILITIES ============= -->
+   <!-- ================================================= -->
+   
+-  <goal name="j2:deployDecorations">
+-	<copy todir="${org.apache.jetspeed.portal.dir}/decorations" >
+-  		<fileset dir="${basedir}/src/webapp/decorations" />
+-  	</copy> 
+-  </goal>	
++	  <goal name="j2:deployDecorations">
++		<copy todir="${org.apache.jetspeed.portal.dir}/decorations" >
++	  		<fileset dir="${basedir}/src/webapp/decorations" />
++	  	</copy> 
++	  </goal>	
++	  
++	  <goal name="j2:deployTemplates">
++	  	<copy todir="${org.apache.jetspeed.portal.dir}/WEB-INF/templates" >
++	  		<fileset dir="${basedir}/src/webapp/WEB-INF/templates" />
++	  	</copy>  
++	  </goal>	
++	  
++	  <goal name="j2:deployPages">
++	  	<copy todir="${org.apache.jetspeed.portal.dir}/WEB-INF/pages" >
++	  		<fileset dir="${basedir}/src/webapp/WEB-INF/pages" />
++	  	</copy>  
++	  </goal>	
++	    
++
++  <!-- ================================================= -->
++  <!-- ============== INSTALLER ============== -->
++  <!-- ================================================= -->
++	  <goal name="j2:buildMultiDbSQL" >
++	     <echo>j2:buildMultiDbSQL DEPRECATED ${sql.src.path}...</echo>
++	
++	  </goal>
++	
++	  <goal name="j2:buildDerbyInstaller">
++	    <ant:property name="install.name" value="Jetspeed2.0-derby" /> 
++	    <ant:copy file="${basedir}/installer2/antinstall-config-derby.xml" tofile="${basedir}/installer2/antinstall-config.xml" overwrite="true" />
++	    <ant:ant dir="${basedir}/installer2" antfile="build-installer.xml" target="selfextract" />
++	  </goal> 
++	 
++	  <goal name="j2:buildMultiInstaller">
++	    <attainGoal name="j2:buildMultiDbSQL" />
++	    <ant:property name="install.name" value="Jetspeed2.0-MultiDB" />
++	    <ant:copy file="${basedir}/installer2/antinstall-config-multi.xml" tofile="${basedir}/installer2/antinstall-config.xml" overwrite="true" />
++	    <ant:ant dir="${basedir}/installer2" antfile="build-installer.xml" target="selfextract" />
++	  </goal>
++	 
++	  <goal name="j2:cleanInstaller">
++	     <ant:delete file="${basedir}/installer2/antinstall-config.xml" />
++	     <ant:ant dir="${basedir}/installer2" antfile="build-installer.xml" target="clean" />
++	  </goal>
++
++
++
++
++
++  <!-- ================================================= -->
++  <!-- ============== DATABASE CONFIGURATION ============== -->
++  <!-- ================================================= -->
++
++	 <!--
++	 		Configure the Serializer environment:
++	 		- recreate the schema and seeddata directories and custom directories underneath.
++	 		- copy source schema and seed files 
++	 		- repeat for user (from ${basedir}/src/sql and ="${basedir}/src/schema respectively) 
++	   -->
++	  <goal name="j2:portal.conf.sql" prereqs="j2:_check.required.properties">
++		<!-- copy seed data -->
++	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}"/>
++	    <j:set var="script_source" value="${org.apache.jetspeed.plugin.root}/plugin-resources/sql"/>
++	    <attainGoal name="j2:_copy.scripts.sql"/>
++	
++		<!-- copy custom seed data  -->
++	<j:if test="${basedir}/src/sql">
++	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/custom"/>
++	    <j:set var="script_source" value="${basedir}/src/sql"/>
++	    <attainGoal name="j2:_copy.scripts.sql"/>
++    </j:if>    
++	  
++	
++		<!-- copy schema description -->
++	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema"/>
++	    <j:set var="script_source" value="${org.apache.jetspeed.plugin.root}/plugin-resources/schema"/>
++	    <attainGoal name="j2:_copy.scripts.sql"/>
++	
++		<!-- copy custom schema extension  -->
++	<j:if test="${basedir}/src/schema">
++	    <j:set var="script_target" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema/custom"/>
++	    <j:set var="script_source" value="${basedir}/src/schema"/>
++	    <attainGoal name="j2:_copy.scripts.sql"/>
++    </j:if>    
++	  </goal>
++
++
++
++
++  <!-- ================================================= -->
++  <!-- ============== DATABASE MANAGEMENT ============== -->
++  <!-- ================================================= -->
++
++	  <goal name="j2:start.production.server" prereqs="j2:_check.required.properties">
++	    <j:set var="maven.start.hsql.message" value="Production/Deployment Database"/>
++	    <j:set var="org.apache.jetspeed.plugin.hsql.db" 
++	           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.db.dir}/hsql/Production"/>
++	    <attainGoal name="j2:_start.hsql"/>
++	  </goal>
++	  
++	  <goal name="j2:start.test.server" prereqs="j2:_check.required.properties">
++	    <j:set var="maven.start.hsql.message" value="Testing Database"/>
++	    <j:set var="org.apache.jetspeed.plugin.hsql.db" 
++	           value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.db.dir}/hsql/Test"/>
++	    <attainGoal name="j2:_start.hsql"/>
++	  </goal>
+   
+-  <goal name="j2:deployTemplates">
+-  	<copy todir="${org.apache.jetspeed.portal.dir}/WEB-INF/templates" >
+-  		<fileset dir="${basedir}/src/webapp/WEB-INF/templates" />
+-  	</copy>  
+-  </goal>	
+-  
+-  <goal name="j2:deployPages">
+-  	<copy todir="${org.apache.jetspeed.portal.dir}/WEB-INF/pages" >
+-  		<fileset dir="${basedir}/src/webapp/WEB-INF/pages" />
+-  	</copy>  
+-  </goal>	
++  <!-- ============================================= -->
++  <!-- ============== DATABASE CREATE ============== -->
++  <!-- ============================================= -->
++
++	  <goal name="j2:db.create.test">
++	    <attainGoal name="j2:_db.test.properties"/>
++	    <j:set var="DDLDROP" value="TRUE"/>
++	    <attainGoal name="j2:_db.create"/>
++	    <attainGoal name="j2:_db.entities"/>
++   	  </goal>
++
++	  <goal name="j2:db.create.production" >
++	    <attainGoal name="j2:_db.production.properties"/>
++	    <j:set var="DDLDROP" value="TRUE"/>
++	    <attainGoal name="j2:_db.create"/>
++	    <attainGoal name="j2:_db.entities"/>
++	  </goal>
++
++	  <goal name="j2:db.update.test">
++	    <attainGoal name="j2:_db.test.properties"/>
++	    <j:set var="DDLDROP" value=""/>
++	    <attainGoal name="j2:_db.create"/>
++	  </goal>
++
++	  <goal name="j2:db.update.production" >
++	    <attainGoal name="j2:_db.production.properties"/>
++	    <j:set var="DDLDROP" value=""/>
++	    <attainGoal name="j2:_db.create"/>
++	  </goal>
++
++	  <goal name="j2:db.recreate" prereqs="j2:portal.conf.sql">
++	    <attainGoal name="j2:db.create.production"/>
++	  </goal>
++
++  <!-- ============================================= -->
++  <!-- ============== DATABASE POPULATE ============== -->
++  <!-- ============================================= -->
+     
++		<goal name="j2:db.user.scripts.production">
++			<attainGoal name="j2:_db.production.properties"/>
++			<echo>Running user-defined SQL scripts...</echo> 
++			<!-- if there is an order file, use it -->
++			<j:set var="DDLORDER" value="${torque.schema.sql.order}"/>
++			<j:set var="DDLFILES" value="${basedir}/src/sql"/>
++			<attainGoal name="j2:_db.runDDL"/>
++		</goal>
++	    
++		<goal name="j2:db.entities">
++			<attainGoal name="j2:_db.production.properties"/>
++			<attainGoal name="j2:_db.entities"/>
++		</goal>
++    
++
+   <!-- ================================================= -->
+   <!-- ================= PLUGIN INTERNAL =============== -->
+   <!-- ================================================= -->
+-  
+-  <goal name="j2:_check.required.property">
+-    <fail message="Required property ${required.property} undefined. See http://portals.apache.org/jetspeed-2/getting-started.html."
+-          unless="${required.property}"/>
+-  </goal>
+ 
+-  <goal name="j2:_check.required.properties" description="Check if the required properties are defined">
+-    <j:if test="${_requiredPropertiesChecked == null}">
+-      <j:set var="_requiredPropertiesChecked" value="true"/>      
+-      <j:set var="required.property" value="org.apache.jetspeed.portal.home"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.portal.groupId"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.portal.artifactId"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.portal.name"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.portal.currentVersion"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.server.home"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.catalina.version.major"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.server.shared"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.deploy.war.dir"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.services.autodeployment.user"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-      <j:set var="required.property" value="org.apache.jetspeed.services.autodeployment.password"/>
+-      <attainGoal name="j2:_check.required.property"/>
+-    </j:if>
+-  </goal>
+ 
+-  <goal name="j2:_set.rdbms.props">
+-    <j:set var="dbase" value="${org.apache.jetspeed.target.rdbms}"/>
+-    <j:choose>
+-      <j:when test="${dbase == 'mssql'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="mssql"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="false"/>
+-      </j:when>
+-      <j:when test="${dbase == 'mysql'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="mysql"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="false"/>
+-      </j:when>
+-      <j:when test="${dbase == 'oracle'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="oracle"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="true"/>
+-      </j:when>
+-      <j:when test="${dbase == 'hsql'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="hypersonic"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="false"/>
+-      </j:when>
+-      <j:when test="${dbase == 'postgres'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="postgresql"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="true"/>
+-      </j:when>
+-      <j:when test="${dbase == 'sapdb'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="sapdb"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="true"/>
+-      </j:when>
+-      <j:when test="${dbase == 'derby'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="derby"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="true"/>
+-      </j:when>
+-      <j:when test="${dbase == 'db2'}">
+-        <j:set var="org.apache.jetspeed.target.rdbms.name" value="db2"/>
+-        <j:set var="org.apache.jetspeed.target.rdbms.dropdrops" value="true"/>
+-      </j:when>      
+-      <j:otherwise>
+-        <fail message="unsupported target database: ${org.apache.jetspeed.target.rdbms}"/>
+-      </j:otherwise>
+-    </j:choose>
+-  </goal>
++
++		<goal name="j2:_db.entities">
++			<echo>Running JETSPEED seed scripts...</echo> 
++			<!-- if there is an order file, use it -->
++			<j:set var="DATAFILE" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/${org.apache.jetspeed.portal.seed.data}"/>
++			<attainGoal name="j2:_db.seed"/>
++		</goal>
+   
+-  <goal name="j2:_generate.sql"
+-        description="Build SQL scripts using Torque generator for target database: ${org.apache.jetspeed.target.rdbms.name}">
+-    <echo message="Using Torque schema located under: ${torque.schema.dir}"/>
+-    <j:if test="${_torqueInitialized == null}">
+-      <attainGoal name="torque:init"/>
+-      <j:set var="_torqueInitialized" value="true"/>
+-    </j:if>
+-    <echo message="Generating SQL schema creation scripts for ${org.apache.jetspeed.target.rdbms.name}"/>
+-    <mkdir dir="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}/schema"/>       
+-    <torque-sql basePathToDbProps="sql/base/"
+-                contextProperties="${torque.contextProperties}"
+-                controlTemplate="${torque.template.sql}"
+-                idTableXMLFile="${torque.idTableXMLFile}"
+-                outputDirectory="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}/schema"
+-                outputFile="report.${torque.project}.sql.generation"
+-                sqldbmap="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}/schema/sqldb.map"
+-                targetDatabase="${org.apache.jetspeed.target.rdbms.name}"
+-                useClasspath="true">
+-      <fileset dir="${torque.schema.dir}" includes="${torque.schema.sql.includes}" excludes="${torque.schema.sql.excludes}"/> 
+-    </torque-sql>
+-    <j:if test="${org.apache.jetspeed.target.rdbms.dropdrops}">
+-      <j:set var="sql.src.path" value="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}/schema"/> 
+-      <j:set var="process.database.script.goal" value="j2:_run.dropdrops"/>
+-      <attainGoal name="j2:_process.all.scripts.in.path"/>   
+-    </j:if>        
+-  </goal>
+   
+-  <goal name="j2:_copy.rdbms.sql.scripts" >
+-    <util:file var="targetRdbmsScriptsDir" name="${portal.sql.src.dir}/${org.apache.jetspeed.target.rdbms}" /> 
+-    <j:if test="${targetRdbmsScriptsDir.exists()}">
+-      <!-- Copy specific DB scripts possibly also overriding the Torque-generated ones --> 
+-      <copy todir="${portal.sql.target.dir}/${org.apache.jetspeed.target.rdbms}"
+-            overwrite="true"
+-            verbose="true"
+-            failonerror="false"
+-            flatten="false">
+-        <fileset dir="${portal.sql.src.dir}/${org.apache.jetspeed.target.rdbms}">
+-          <include name="**/*.sql"/>
+-        </fileset>
+-      </copy>
+-    </j:if>
+-  </goal>
++  <!-- ================= Properties =============== -->
++	  <goal name="j2:_check.required.property">
++	    <fail message="Required property ${required.property} undefined. See http://portals.apache.org/jetspeed-2/getting-started.html."
++	          unless="${required.property}"/>
++	  </goal>
++	
++	  <goal name="j2:_check.required.properties" description="Check if the required properties are defined">
++	    <j:if test="${_requiredPropertiesChecked == null}">
++	      <j:set var="_requiredPropertiesChecked" value="true"/>      
++	      <j:set var="required.property" value="org.apache.jetspeed.portal.home"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.portal.groupId"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.portal.artifactId"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.portal.name"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.portal.currentVersion"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.server.home"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.catalina.version.major"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.server.shared"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.deploy.war.dir"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.services.autodeployment.user"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	      <j:set var="required.property" value="org.apache.jetspeed.services.autodeployment.password"/>
++	      <attainGoal name="j2:_check.required.property"/>
++	    </j:if>
++	  </goal>
++	
++	  <goal name="j2:_set.rdbms.props">
++	    <echo message="GOAL j2:_set.rdbms.props Deprecated"/>
++	   </goal>
+ 
+-  <!-- Use this uility goal to process all of the .sql scripts in the specified path using the specified goal -->
+-  <goal name="j2:process.all.scripts.in.path" >
+-    <echo>Checking for SQL scripts at path ${sql.src.path}...</echo>
+-    <!-- process user custom SQL -->
+-    <util:available file="${sql.src.path}">
+-      <echo>Running SQL scripts in directory ${sql.src.path}...</echo>
+-      <util:file name="${sql.src.path}" var="sqldir"/>
+-      <j:set var="fileList" value="${sqldir.listFiles()}"/>
+-      <j:forEach items="${fileList}" var="sqlfile" >
+-        <j:if test="${sqlfile.name.endsWith('.sql')}" >
+-          <j:set var="database.arg.script" value="${sqlfile.absolutePath}"/>
+-          <attainGoal name="${process.database.script.goal}"/>
+-        </j:if>
+-      </j:forEach>
+-    </util:available>
+-  </goal>
++  <!-- ================= Database related internal functions =============== -->
++
++	  <!-- DEPRECATED -->
+   
+-  <goal name="j2:_run.dropdrops">
+-    <java classname="org.apache.jetspeed.dbutil.ScriptUtil" fork="yes">
+-      <classpath>
+-        <path refid="maven.dependency.classpath"/>
+-        <pathelement path="${maven.build.dest}"/>
+-        <pathelement path="${org.apache.jetspeed.plugin.root}"/>
+-      </classpath>
+-      <arg value="-drops"/>
+-      <arg value="${database.arg.script}"/>
+-    </java>
+-  </goal>
++		  <goal name="j2:_generate.sql">
++		    <echo message="GOAL j2:__generate.sql Deprecated"/>
++		  </goal>
++		  <goal name="j2:_copy.rdbms.sql.scripts" >
++		    <echo message="GOAL j2:_copy.rdbms.sql.scripts Deprecated"/>
++		  </goal>
++		  <goal name="j2:process.all.scripts.in.path" >
++		    <echo>j2:process.all.scripts.in.path DEPRECATED ${sql.src.path}...</echo>
++		  </goal>
++		  <goal name="j2:_process.all.scripts.in.path" >
++		    <echo>j2:_process.all.scripts.in.path DEPRECATED ${sql.src.path}...</echo>
++		  </goal>
++		  <goal name="j2:_db.execute">
++		    <echo>j2:_db.execute - Deprecated</echo>
++		  </goal>
+ 
+-  <!-- Use this uility goal to process all of the .sql scripts in the specified path -->
+-  <goal name="j2:_process.all.scripts.in.path" >
+-    <echo>Checking for SQL scripts at path ${sql.src.path}...</echo>
+-    <!-- process user custom SQL -->
+-    <util:available file="${sql.src.path}">
+-      <echo>Running SQL scripts in directory ${sql.src.path}...</echo>
+-      <util:file name="${sql.src.path}" var="sqldir"/>
+-      <j:set var="fileList" value="${sqldir.listFiles()}"/>
+-      <j:forEach items="${fileList}" var="sqlfile" >
+-        <j:if test="${sqlfile.name.endsWith('.sql')}" >
+-          <j:set var="database.arg.script" value="${sqlfile.absolutePath}"/>
+-          <attainGoal name="${process.database.script.goal}"/>
+-        </j:if>
+-      </j:forEach>
+-    </util:available>
+-  </goal>
++	  <!-- START HSQL -->
+     
+-  <goal name="j2:_start.hsql">
+-    <echo message="===================================="/>
+-    <echo message="${maven.start.hsql.message}"/>
+-    <echo message="===================================="/>
+-    <java classname="org.hsqldb.Server" fork="yes">
+-      <classpath>
+-        <pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
+-      </classpath>
+-      <arg value="-database"/>
+-      <arg value="${org.apache.jetspeed.plugin.hsql.db}"/>
+-      <arg value="-port"/>
+-      <arg value="9001"/>
+-      <arg value="-silent"/>
+-      <arg value="true"/>
+-      <arg value="-trace"/>
+-      <arg value="true"/>
+-    </java>
+-  </goal>
+-    
+-  <goal name="j2:_db.execute">
+-    <!-- Ugly hack (or sound fix) setting the parentScope to an empty String because
+-         with maven project inheritance the size of this property is killing
+-         performance when the sql task is trying to interpose property values.
+-         See: http://issues.apache.org/jira/browse/JS2-322
+-         Without this hack the time to run the db.create.test task (using Oracle9i)
+-         increases by at least 30 seconds for each level of inheritance.
+-         Note: the project generated with genapp has an inheritance level of 4!
+-         Hopefully, these kind of problems are solved when we move to maven 2 ...
+-    --> 
++		  <goal name="j2:_start.hsql">
++		    <echo message="===================================="/>
++		    <echo message="${maven.start.hsql.message}"/>
++		    <echo message="===================================="/>
++		    <java classname="org.hsqldb.Server" fork="yes">
++		      <classpath>
++		        <pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
++		      </classpath>
++		      <arg value="-database"/>
++		      <arg value="${org.apache.jetspeed.plugin.hsql.db}"/>
++		      <arg value="-port"/>
++		      <arg value="9001"/>
++		      <arg value="-silent"/>
++		      <arg value="true"/>
++		      <arg value="-trace"/>
++		      <arg value="true"/>
++		    </java>
++		  </goal>
+ 
+-    <j:set var="webinflocation" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.target.dir}" />
+-    <j:set var="parentScope" scope="parent" value=""/>
+-    <j:set var="tempvarA" value="${org.apache.jetspeed.database.driver}" />
+-<!--
+-    leave this section out for now.  Ultimately we'd like to find a way to install the derby DB somewhere path relative
+-    at run time, but for now leave it with /tmp  it works on both platforms, but doesn't confuse things with 
+-    build/install  orders.   Specifically the DB during j2:quickStart, after the WAR files are created, so the DB is not
+-    copied into WEB-INF, unless things are run twice without a clean.
+ 
+-
+-    <j:if test="${tempvarA == 'org.apache.derby.jdbc.EmbeddedDriver'}">
+-      <j:set var="org.apache.jetspeed.database.url" value="jdbc:derby:${webinflocation}/WEB-INF/productiondb;create=true" /> 
+-   </j:if>
+--->
+-   <sql driver="${org.apache.jetspeed.database.driver}" url="${org.apache.jetspeed.database.url}"
+-         userid="${org.apache.jetspeed.database.user}" password="${org.apache.jetspeed.database.password}"
+-         src="${database.arg.script}"
+-         autocommit="true"
+-         onerror="${database.arg.onerror}">
+-      <classpath>
+-        <pathelement path="${plugin.getDependencyPath('org.apache.derby:derby')}"/>
+-        <pathelement path="${org.apache.jetspeed.jdbc.drivers.path}"/>
+-        <pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
+-      </classpath>
+-    </sql>
+-  </goal>
+     
+-  <goal name="j2:_db.test.properties">
+-    <j:set var="org.apache.jetspeed.database.default.name" value="${org.apache.jetspeed.test.database.default.name}"/>
+-    <j:set var="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.test.database.url}"/>
+-    <j:set var="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.test.database.driver}"/>
+-    <j:set var="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.test.database.user}"/>
+-    <j:set var="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.test.database.password}"/>
+-    <j:set var="org.apache.jetspeed.jdbc.drivers.path" value="${org.apache.jetspeed.test.jdbc.drivers.path}"/>
+-  </goal>
++	  <!-- Set DB PROPERTIES -->
++    
++		  <goal name="j2:_db.test.properties">
++		    <j:set var="org.apache.jetspeed.database.default.name" value="${org.apache.jetspeed.test.database.default.name}"/>
++		    <j:set var="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.test.database.url}"/>
++		    <j:set var="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.test.database.driver}"/>
++		    <j:set var="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.test.database.user}"/>
++		    <j:set var="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.test.database.password}"/>
++		    <j:set var="org.apache.jetspeed.jdbc.drivers.path" value="${org.apache.jetspeed.test.jdbc.drivers.path}"/>
++		  </goal>
++		
++		  <goal name="j2:_db.production.properties">
++		    <j:set var="org.apache.jetspeed.database.default.name" value="${org.apache.jetspeed.production.database.default.name}"/>
++		    <j:set var="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.production.database.url}"/>
++		    <j:set var="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.production.database.driver}"/>
++		    <j:set var="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.production.database.user}"/>
++		    <j:set var="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.production.database.password}"/>
++		    <j:set var="org.apache.jetspeed.jdbc.drivers.path" value="${org.apache.jetspeed.production.jdbc.drivers.path}"/>
++		  </goal>
+ 
+-  <goal name="j2:_db.production.properties">
+-    <j:set var="org.apache.jetspeed.database.default.name" value="${org.apache.jetspeed.production.database.default.name}"/>
+-    <j:set var="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.production.database.url}"/>
+-    <j:set var="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.production.database.driver}"/>
+-    <j:set var="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.production.database.user}"/>
+-    <j:set var="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.production.database.password}"/>
+-    <j:set var="org.apache.jetspeed.jdbc.drivers.path" value="${org.apache.jetspeed.production.jdbc.drivers.path}"/>
+-  </goal>
++	  <!-- CREATE/DELETE DB -->
+   
+-  <goal name="j2:_db.create">
+-    <j:set var="portal.sql.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}"/>
+-    <j:set var="sql.src.path" value="${portal.sql.dir}/${org.apache.jetspeed.database.default.name}/schema"/>
+-    <j:set var="database.arg.onerror" value="abort"/> 
+-    <j:set var="process.database.script.goal" value="j2:_db.execute"/>
+-    <attainGoal name="j2:_process.all.scripts.in.path"/>
++		  <goal name="j2:_db.create">
++		        <!-- create base first to avoid cross reference conflict -->
++		        <j:set var="DDLORDER" value="${torque.schema.sql.order}"/>
++		        <j:set var="DDLFILES" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema"/>
++		        <attainGoal name="j2:_db.runDDL"/>
++		        <j:set var="DDLFILES" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}/schema/custom"/>
++			    <j:set var="DDLDROP" value=""/>
++		        <attainGoal name="j2:_db.runDDL"/>
++		  </goal>
++    
+ 
+-    <j:set var="database.arg.script" value="${portal.sql.dir}/populate-db-default.sql"/>
+-    <attainGoal name="j2:_db.execute"/>
++	
++	  <!-- Helper function -->
+ 
+-     <!-- process user custom SQL -->
+-    <echo>Running user-defined SQL scripts...</echo>   
+-    <j:set var="sql.src.path" value="${basedir}/src/sql"/>
+-    <j:set var="process.database.script.goal" value="j2:_db.execute"/>
+-    <attainGoal name="j2:_process.all.scripts.in.path"/>
+-  </goal>
++		  <goal name="j2:_copy.scripts.sql">
++		    <delete dir="${script_target}" failonerror="false"/>
++		    <mkdir dir="${script_target}"/>
++		    <copy todir="${script_target}" overwrite="true" verbose="true" failonerror="false" flatten="true">
++		      <fileset dir="${script_source}">
++		        <include name="*.xml"/>
++		      </fileset>
++		    </copy>        
++		  </goal>
++
++
++
++	  <!-- ============== DDL-Serializer ============== -->
++		
++			<goal name='j2:_db.runDDL'>
++			<echo> CALLING DDLUTIL </echo>
++			<j:choose>
++        		<j:when test='${empty(DDLDROP)}'>
++		            <j:set var="argdrop" value=""/>   
++    		    </j:when>
++        		<j:otherwise>
++				  <j:set var="argdrop" value="-R"/>  
++		        </j:otherwise>
++		    </j:choose>
++			
++			<j:choose>
++        		<j:when test='${empty(DDLEXCLUDE)}'>
++		            <j:set var="argexclude" value=""/>   
++    		    </j:when>
++        		<j:otherwise>
++				  <j:set var="argexclude" value="-x ${DDLEXCLUDE}"/>  
++		        </j:otherwise>
++		    </j:choose>
++
++			<j:choose>
++        		<j:when test='${empty(DDLORDER)}'>
++		            <j:set var="argorder" value=""/>   
++    		    </j:when>
++        		<j:otherwise>
++				  <j:set var="argorder" value="-s ${DDLORDER}"/>  
++		        </j:otherwise>
++		    </j:choose>
++			<echo> 
++				running DDL with directory: ${DDLFILES} , arguments: ${argexclude} ${argorder} ${argdrop}  databaseURL: ${org.apache.jetspeed.database.url}
++			</echo>
++				<java classname="org.apache.jetspeed.serializer.JetspeedDDLApplication" fork="yes">
++				  <classpath>
++				    <path refid="maven.dependency.classpath"/>
++				    <pathelement path="${maven.build.dest}"/>
++				    <pathelement path="${basedir}/etc/log4j/log4j.properties"/>
++			        <pathelement path="${org.apache.jetspeed.plugin.root}"/>
++				    <pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>                          
++				  </classpath> 
++				    <arg line="-I ${DDLFILES} ${argexclude} ${argorder}  ${argdrop} -dc ${org.apache.jetspeed.database.driver} -ds ${org.apache.jetspeed.database.url} -du ${org.apache.jetspeed.database.user} -dp ${org.apache.jetspeed.database.password}  -dn $(org.apache.jetspeed.database.default.name)"/>  
++				</java>
++			</goal>
++				
++	  <!-- ============== Data-Serializer for seed data============== -->
++		    <goal name='j2:_db.seed'>
++		    	<!-- ensure we have valid ojb properties -->
++			   <j:set var="portal.target.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.target.dir}"/>      
++				<j:set var="portal.webapp.dir.assembly" value="${portal.target.dir}/WEB-INF/assembly/"/>      
++
++		     <j:set var="temp.assembly.dir" value="${org.apache.jetspeed.portal.sql.dir}/assembly"/>      
++
++			<echo> j2:_db.seed with -b ${temp.assembly.dir}/boot/ -c ${temp.assembly.dir}/ </echo>
++
++
++		    <mkdir dir="${temp.assembly.dir}"/>
++		
++			<copy todir="${temp.assembly.dir}" overwrite="true" failonerror="true">
++		      <fileset dir="${portal.webapp.dir.assembly}">
++		        <include name="security*.xml"/>
++				<include name="capabilities.xml"/>           
++				<include name="prefs.xml"/>           
++				<include name="profiler.xml"/>           
++				<include name="transaction.xml"/>           
++		      </fileset>
++		     </copy>
++		
++		    <mkdir dir="${temp.assembly.dir}/boot"/>
++		
++			<copy todir="${temp.assembly.dir}/boot" overwrite="true" failonerror="true">
++		      <fileset dir="${portal.webapp.dir.assembly}/boot">
++		        <include name="*.xml"/>
++		      </fileset>
++		      </copy>
++
++				<echo> running _db.seed with data: ${DATAFILE}  arguments: -b ${temp.assembly.dir}/boot/ -c ${temp.assembly.dir}/  database-url: ${org.apache.jetspeed.database.url}</echo>
++		    	
++		        <java classname="org.apache.jetspeed.serializer.JetspeedSerializerApplication" fork="yes">
++		          <classpath>
++		            <path refid="maven.dependency.classpath"/>
++		            <pathelement path="${portal.target.dir}/WEB-INF/classes"/>
++		            <pathelement path="${maven.build.dest}"/>
++			        <pathelement path="${org.apache.jetspeed.plugin.root}"/>
++		            <pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>                          
++		          </classpath>
++		            <arg line="-I ${DATAFILE} -b ${temp.assembly.dir}/boot/ -c ${temp.assembly.dir}/ -dc ${org.apache.jetspeed.database.driver} -ds ${org.apache.jetspeed.database.url} -du ${org.apache.jetspeed.database.user} -dp ${org.apache.jetspeed.database.password}"/>  
++		        </java>
++		    </goal>
++
++
++  <!-- ================= END Database related internal functions =============== -->
++
++  <!-- ================= LDAP related internal functions =============== -->
++		  <goal name="j2:_start.ldap">
++		    <echo message="===================================="/>
++		    <echo message="${maven.start.ldap.message}"/>
++		    <echo message="===================================="/>
++		    <delete dir="target/apacheds/logs"/>
++		    <mkdir dir="target/apacheds/logs"/>
++		    <echo file="target/apacheds/logs/apacheds.log">${maven.start.ldap.message}</echo>
++		    <java classname="org.apache.ldap.server.ServerMain" fork="yes">
++		      <classpath>
++		        <pathelement path="${plugin.getDependencyPath('directory:apacheds-main')}"/>
++		      </classpath>
++		      <arg value="${org.apache.jetspeed.plugin.ldap.conf}"/>
++		    </java>
++		  </goal>
+     
+-  <goal name="j2:_db.drop">
+-    <j:set var="portal.sql.dir" value="${org.apache.jetspeed.portal.home}/${org.apache.jetspeed.portal.sql.dir}"/>
+-    <j:set var="database.arg.script" value="${portal.sql.dir}/drop.sql"/>
+-    <j:set var="database.arg.onerror" value="continue"/>
+-    <attainGoal name="j2:_db.execute"/>
+-  </goal>
+-  
+-  <!-- LDAP internal goals -->
+-  <goal name="j2:_start.ldap">
+-    <echo message="===================================="/>
+-    <echo message="${maven.start.ldap.message}"/>
+-    <echo message="===================================="/>
+-    <delete dir="target/apacheds/logs"/>
+-    <mkdir dir="target/apacheds/logs"/>
+-    <echo file="target/apacheds/logs/apacheds.log">${maven.start.ldap.message}</echo>
+-    <java classname="org.apache.ldap.server.ServerMain" fork="yes">
+-      <classpath>
+-        <pathelement path="${plugin.getDependencyPath('directory:apacheds-main')}"/>
+-      </classpath>
+-      <arg value="${org.apache.jetspeed.plugin.ldap.conf}"/>
+-    </java>
+-  </goal>
+-    
+-  <!-- Check for availability of a dependency in the local repository and download it from the remote repo(s)
+-       if not found or a snapshot.
+-       Taken from the maven-plugin-plugin 1.5.2.
+-   -->
+-  <goal name="j2:_check.dep">
+-    <util:file var="localFile" name="${maven.repo.local}/${depGroup}/${depType}/${depName}" /> 
+-    <j:if test="${!localFile.exists()}">
+-      <j:set var="nolocalFile" value="true"/>
+-    </j:if>       

[... 132 lines stripped ...]


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