weaver 2004/05/11 09:25:46
Modified: . Tag: NANOCONTAINER_DEPLOYER maven.xml
Log:
the great component migration
Revision Changes Path
No revision
No revision
1.42.2.3 +395 -392 jakarta-jetspeed-2/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/maven.xml,v
retrieving revision 1.42.2.2
retrieving revision 1.42.2.3
diff -u -r1.42.2.2 -r1.42.2.3
--- maven.xml 23 Apr 2004 22:34:49 -0000 1.42.2.2
+++ maven.xml 11 May 2004 16:25:46 -0000 1.42.2.3
@@ -1,392 +1,395 @@
-<!--
-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.
--->
-<project default="java:jar"
- xmlns:j="jelly:core"
- xmlns:maven="jelly:maven"
- xmlns:ant="jelly:ant">
-
-
- <goal name="allClean"
- description="Clean the master project and all subprojects">
- <attainGoal name="subClean"/>
- <attainGoal name="clean"/>
- </goal>
-
- <goal name="subClean"
- description="Clean all subprojects"
- >
- <maven:reactor
- basedir="${basedir}"
- includes="*/project.xml,applications/*/project.xml,services/*/project.xml,components/*/project.xml"
- excludes="applications/project.xml,cornerstone-demo/project.xml"
- goals="clean"
- banner="Cleaning"
- ignoreFailures="true"/>
- </goal>
-
- <goal name="allSite"
- description="Build the site for the master project and all subprojects"
- >
- <maven:reactor
- basedir="${basedir}"
- includes="site/project.xml"
- excludes="cornerstone-demo/project.xml,portlet-api/project.xml"
- goals="allSite"
- banner="Building Site"
- postProcessing="false"
- ignoreFailures="false"/>
- </goal>
-
- <goal name="build.all.components"
- description="Build and install all the component jars">
-
- <maven:reactor
- basedir="${basedir}"
- includes="**/components/*/project.xml"
- goals="jar:install"
- banner="Build and install all the component jars"
- postProcessing="false"
- ignoreFailures="false"/>
- </goal>
-
- <goal name="allBuild"
- description="Build all jars and war">
- <attainGoal name="db.scripts.gen"/>
- <attainGoal name="db.create"/>
-
- <!-- Build jars -->
- <maven:reactor
- basedir="${basedir}/portlet-api"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the Portlet API jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/commons"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the common jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/cm"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the Component Manager jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/jetspeed"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the Jetspeed Components jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/content-server"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the content server jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/rdbms"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the RDBMS jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/persistence"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the Persistence jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/registry"
- includes="project.xml"
- goals="build.registry"
- banner="Build and Install the Regsitry Components jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/prefs"
- includes="project.xml"
- goals="build.prefs"
- banner="Build and Install the Preferences Components jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/components/security"
- includes="project.xml"
- goals="build.security"
- banner="Build and Install the Security Components jar"
- postProcessing="false"
- ignoreFailures="false"/>
- <maven:reactor
- basedir="${basedir}/cps"
- includes="project.xml"
- goals="jar:install"
- banner="Build and Install the portlet commons services jar"
- postProcessing="false"
- ignoreFailures="false"/>
-
- <!-- Build war files -->
- <maven:reactor
- basedir="${basedir}"
- includes="portal/project.xml"
- goals="war:install"
- banner="Build and Install the Portlet WAR"
- postProcessing="false"
- ignoreFailures="false"/>
-
-
- <maven:reactor
- basedir="${basedir}/applications/demo"
- includes="project.xml"
- excludes="applications/project.xml"
- goals="war:install"
- banner="Build and Install the Demo application WAR"
- postProcessing="false"
- ignoreFailures="false"/>
-
- <attainGoal name="copy.shared.deps" />
- </goal>
-
- <goal name="copy.shared.deps">
- <maven:reactor
- basedir="${basedir}"
- includes="portal/project.xml"
- goals="catalina:base-shared"
- banner="Deploys misc. jars shared/lib to Tomcat"
- postProcessing="false"
- ignoreFailures="false"/>
-
- <maven:reactor
- basedir="${basedir}"
- includes="portal/project.xml"
- goals="catalina:shared"
- banner="Deploys container jars to shared/lib to Tomcat"
- postProcessing="false"
- ignoreFailures="false"/>
- </goal>
-
-
- <goal name="show.maven.props">
- <echo message="maven.home.local = ${maven.home.local}" />
- <echo message="maven.repo.local = ${maven.repo.local}" />
- </goal>
-
- <goal name="start.production.server">
- <echo message="====================================" />
- <echo message=" Production/Deployment Database " />
- <echo message="====================================" />
- <java classname="org.hsqldb.Server" fork="yes">
- <classpath>
- <path refid="maven.dependency.classpath"/>
- <pathelement path="${maven.build.dest}"/>
- </classpath>
- <arg value="-database" />
- <arg value="./src/database/hsql/Production" />
- <arg value="-port" />
- <arg value="9001" />
- <arg value="-silent" />
- <arg value="true" />
- <arg value="-trace" />
- <arg value="false" />
- </java>
- </goal>
-
- <goal name="start.test.server">
- <echo message="====================================" />
- <echo message=" Testing Database " />
- <echo message="====================================" />
- <java classname="org.hsqldb.Server" fork="yes">
- <classpath>
- <path refid="maven.dependency.classpath"/>
- <pathelement path="${maven.build.dest}"/>
- </classpath>
- <arg value="-database" />
- <arg value="./src/database/hsql/Test" />
- <arg value="-port" />
- <arg value="9001" />
- <arg value="-silent" />
- <arg value="true" />
- <arg value="-trace" />
- <arg value="false" />
- </java>
- </goal>
-
- <goal name="db.scripts.gen" prereqs="torque:init"
- description="Build SQL scripts using Torque generator">
-
- <echo message="Generating SQL schema creation scripts for HSQLDB"/>
- <torque-sql
- basePathToDbProps="sql/base/"
- contextProperties="${torque.contextProperties}"
- controlTemplate="${torque.template.sql}"
- idTableXMLFile="${torque.idTableXMLFile}"
- outputDirectory="${maven.build.src}/sql/hsql"
- outputFile="report.${torque.project}.sql.generation"
- sqldbmap="${maven.build.src}/sql/hsql/sqldb.map"
- targetDatabase="hypersonic"
- useClasspath="true">
- <fileset dir="${torque.schema.dir}"
- includes="${torque.schema.sql.includes}"
- excludes="${torque.schema.sql.excludes}"
- />
- </torque-sql>
-
- <echo message="Generating SQL schema creation scripts for MySQL"/>
- <torque-sql
- basePathToDbProps="sql/base/"
- contextProperties="${torque.contextProperties}"
- controlTemplate="${torque.template.sql}"
- idTableXMLFile="${torque.idTableXMLFile}"
- outputDirectory="${maven.build.src}/sql/mysql"
- outputFile="report.${torque.project}.sql.generation"
- sqldbmap="${maven.build.src}/sql/mysql/sqldb.map"
- targetDatabase="mysql"
- useClasspath="true">
- <fileset dir="${torque.schema.dir}"
- includes="${torque.schema.sql.includes}"
- excludes="${torque.schema.sql.excludes}"
- />
- </torque-sql>
-
- <echo message="Generating SQL schema creation scripts for Oracle"/>
- <torque-sql
- basePathToDbProps="sql/base/"
- contextProperties="${torque.contextProperties}"
- controlTemplate="${torque.template.sql}"
- idTableXMLFile="${torque.idTableXMLFile}"
- outputDirectory="${maven.build.src}/sql/oracle"
- outputFile="report.${torque.project}.sql.generation"
- sqldbmap="${maven.build.src}/sql/oracle/sqldb.map"
- targetDatabase="oracle"
- useClasspath="true">
- <fileset dir="${torque.schema.dir}"
- includes="${torque.schema.sql.includes}"
- excludes="${torque.schema.sql.excludes}"
- />
- </torque-sql>
-
- </goal>
-
-
- <!-- ================================================================ -->
- <!-- EXECUTE a DB SCRIPT -->
- <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
- <!-- ================================================================ -->
- <goal name="db.execute">
- <sql driver="${org.apache.jetspeed.database.driver}"
- classpathref="maven.dependency.classpath"
- url="${org.apache.jetspeed.database.url}"
- userid="${org.apache.jetspeed.database.user}"
- password="${org.apache.jetspeed.database.password}"
- src="${database.arg.script}">
- </sql>
- </goal>
-
- <!-- ================================================================ -->
- <!-- EXECUTE CREATE DB SQL SCRIPTS -->
- <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
- <!-- ================================================================ -->
- <goal name="db.create">
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/phase3ojb-schema.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/phase1-schema.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/phase2-schema.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/registry-schema.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/prefs-schema.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/security-schema.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./src/sql/populate-db-default.sql" />
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/test-persistence-schema.sql"
/>
- <attainGoal name="db.execute" />
- </goal>
-
- <!-- ================================================================ -->
- <!-- EXECUTE DROP DB SQL SCRIPTS -->
- <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
- <!-- ================================================================ -->
- <goal name="db.drop">
- <j:set var="database.arg.script" value="./src/sql/${database.default.name}/drop-db.sql"
/>
- <attainGoal name="db.execute" />
- <j:set var="database.arg.script" value="./src/sql/${database.default.name}/registry-drop-db.sql"
/>
- <attainGoal name="db.execute" />
- </goal>
-
- <!-- ================================================================ -->
- <!-- EXECUTE RECREATE DB SQL SCRIPTS -->
- <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
- <!-- ================================================================ -->
- <goal name="db.recreate">
-<!-- <attainGoal name="db.drop" /> -->
- <attainGoal name="db.create" />
- </goal>
-
- <goal name="quickStart"
- description="Creates the production DB and calls portal/maven fulDeploy">
- <attainGoal name="db.recreate" />
- <maven:reactor
- basedir="${basedir}"
- includes="portal/project.xml"
- goals="fullDeploy"
- banner="Deploying basic Jetspeed portal suite"
- postProcessing="false"
- ignoreFailures="false"/>
- </goal>
-
- <preGoal name="jar:jar">
- <j:forEach var="lib" items="${pom.artifacts}">
- <j:set var="dep" value="${lib.dependency}"/>
- <j:if test="${dep.getProperty('jar.bundle')=='true'}">
- <j:if test="${dep.type =='jar'}">
- <ant:copy todir="${maven.build.dest}/lib" file="${lib.path}"/>
- </j:if>
- </j:if>
- </j:forEach>
- </preGoal>
-
- <!-- Because of the way or our cotainer handles classloading, we need
- alter the testing class path to NOT include compnent jars at testing time
- -->
- <preGoal name="test:test">
- <ant:path id="maven.dependency.classpath" >
- <j:forEach var="lib" items="${pom.artifacts}">
- <j:set var="dep" value="${lib.dependency}"/>
- <j:if test="${dep.getProperty('component.only')!='true'}" >
- <j:if test="${dep.type =='jar'}" >
- <ant:pathelement path="${lib.path}" />
- </j:if>
- </j:if>
- <j:if test="${dep.getProperty('component.only')=='true'}">
- <copy todir="${basedir}/target/deploy" file="${lib.path}" overwrite="true"/>
- </j:if>
- </j:forEach>
- </ant:path>
-
- </preGoal>
-
-</project>
+<!--
+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.
+-->
+<project default="java:jar"
+ xmlns:j="jelly:core"
+ xmlns:maven="jelly:maven"
+ xmlns:ant="jelly:ant">
+
+
+ <goal name="allClean"
+ description="Clean the master project and all subprojects">
+ <attainGoal name="subClean"/>
+ <attainGoal name="clean"/>
+ </goal>
+
+ <goal name="subClean"
+ description="Clean all subprojects"
+ >
+ <maven:reactor
+ basedir="${basedir}"
+ includes="*/project.xml,applications/*/project.xml,services/*/project.xml,components/*/project.xml"
+ excludes="applications/project.xml,cornerstone-demo/project.xml"
+ goals="clean"
+ banner="Cleaning"
+ ignoreFailures="true"/>
+ </goal>
+
+ <goal name="allSite"
+ description="Build the site for the master project and all subprojects"
+ >
+ <maven:reactor
+ basedir="${basedir}"
+ includes="site/project.xml"
+ excludes="cornerstone-demo/project.xml,portlet-api/project.xml"
+ goals="allSite"
+ banner="Building Site"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ </goal>
+
+ <goal name="build.all.components"
+ description="Build and install all the component jars">
+
+ <maven:reactor
+ basedir="${basedir}"
+ includes="**/components/*/project.xml"
+ goals="jar:install"
+ banner="Build and install all the component jars"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ </goal>
+
+ <goal name="allBuild"
+ description="Build all jars and war">
+ <attainGoal name="db.scripts.gen"/>
+ <attainGoal name="db.create"/>
+
+ <!-- Build jars -->
+ <maven:reactor
+ basedir="${basedir}/portlet-api"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the Portlet API jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/commons"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the common jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/cm"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the Component Manager jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/jetspeed"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the Jetspeed Components jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/content-server"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the content server jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/rdbms"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the RDBMS jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/persistence"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the Persistence jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/registry"
+ includes="project.xml"
+ goals="build.registry"
+ banner="Build and Install the Regsitry Components jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/prefs"
+ includes="project.xml"
+ goals="build.prefs"
+ banner="Build and Install the Preferences Components jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/components/security"
+ includes="project.xml"
+ goals="build.security"
+ banner="Build and Install the Security Components jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ <maven:reactor
+ basedir="${basedir}/cps"
+ includes="project.xml"
+ goals="jar:install"
+ banner="Build and Install the portlet commons services jar"
+ postProcessing="false"
+ ignoreFailures="false"/>
+
+ <!-- Build war files -->
+ <maven:reactor
+ basedir="${basedir}"
+ includes="portal/project.xml"
+ goals="war:install"
+ banner="Build and Install the Portlet WAR"
+ postProcessing="false"
+ ignoreFailures="false"/>
+
+
+ <maven:reactor
+ basedir="${basedir}/applications/demo"
+ includes="project.xml"
+ excludes="applications/project.xml"
+ goals="war:install"
+ banner="Build and Install the Demo application WAR"
+ postProcessing="false"
+ ignoreFailures="false"/>
+
+ <attainGoal name="copy.shared.deps" />
+ </goal>
+
+ <goal name="copy.shared.deps">
+ <maven:reactor
+ basedir="${basedir}"
+ includes="portal/project.xml"
+ goals="catalina:base-shared"
+ banner="Deploys misc. jars shared/lib to Tomcat"
+ postProcessing="false"
+ ignoreFailures="false"/>
+
+ <maven:reactor
+ basedir="${basedir}"
+ includes="portal/project.xml"
+ goals="catalina:shared"
+ banner="Deploys container jars to shared/lib to Tomcat"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ </goal>
+
+
+ <goal name="show.maven.props">
+ <echo message="maven.home.local = ${maven.home.local}" />
+ <echo message="maven.repo.local = ${maven.repo.local}" />
+ </goal>
+
+ <goal name="start.production.server">
+ <echo message="====================================" />
+ <echo message=" Production/Deployment Database " />
+ <echo message="====================================" />
+ <java classname="org.hsqldb.Server" fork="yes">
+ <classpath>
+ <path refid="maven.dependency.classpath"/>
+ <pathelement path="${maven.build.dest}"/>
+ </classpath>
+ <arg value="-database" />
+ <arg value="./src/database/hsql/Production" />
+ <arg value="-port" />
+ <arg value="9001" />
+ <arg value="-silent" />
+ <arg value="true" />
+ <arg value="-trace" />
+ <arg value="false" />
+ </java>
+ </goal>
+
+ <goal name="start.test.server">
+ <echo message="====================================" />
+ <echo message=" Testing Database " />
+ <echo message="====================================" />
+ <java classname="org.hsqldb.Server" fork="yes">
+ <classpath>
+ <path refid="maven.dependency.classpath"/>
+ <pathelement path="${maven.build.dest}"/>
+ </classpath>
+ <arg value="-database" />
+ <arg value="./src/database/hsql/Test" />
+ <arg value="-port" />
+ <arg value="9001" />
+ <arg value="-silent" />
+ <arg value="true" />
+ <arg value="-trace" />
+ <arg value="false" />
+ </java>
+ </goal>
+
+ <goal name="db.scripts.gen" prereqs="torque:init"
+ description="Build SQL scripts using Torque generator">
+
+ <echo message="Generating SQL schema creation scripts for HSQLDB"/>
+ <torque-sql
+ basePathToDbProps="sql/base/"
+ contextProperties="${torque.contextProperties}"
+ controlTemplate="${torque.template.sql}"
+ idTableXMLFile="${torque.idTableXMLFile}"
+ outputDirectory="${maven.build.src}/sql/hsql"
+ outputFile="report.${torque.project}.sql.generation"
+ sqldbmap="${maven.build.src}/sql/hsql/sqldb.map"
+ targetDatabase="hypersonic"
+ useClasspath="true">
+ <fileset dir="${torque.schema.dir}"
+ includes="${torque.schema.sql.includes}"
+ excludes="${torque.schema.sql.excludes}"
+ />
+ </torque-sql>
+
+ <echo message="Generating SQL schema creation scripts for MySQL"/>
+ <torque-sql
+ basePathToDbProps="sql/base/"
+ contextProperties="${torque.contextProperties}"
+ controlTemplate="${torque.template.sql}"
+ idTableXMLFile="${torque.idTableXMLFile}"
+ outputDirectory="${maven.build.src}/sql/mysql"
+ outputFile="report.${torque.project}.sql.generation"
+ sqldbmap="${maven.build.src}/sql/mysql/sqldb.map"
+ targetDatabase="mysql"
+ useClasspath="true">
+ <fileset dir="${torque.schema.dir}"
+ includes="${torque.schema.sql.includes}"
+ excludes="${torque.schema.sql.excludes}"
+ />
+ </torque-sql>
+
+ <echo message="Generating SQL schema creation scripts for Oracle"/>
+ <torque-sql
+ basePathToDbProps="sql/base/"
+ contextProperties="${torque.contextProperties}"
+ controlTemplate="${torque.template.sql}"
+ idTableXMLFile="${torque.idTableXMLFile}"
+ outputDirectory="${maven.build.src}/sql/oracle"
+ outputFile="report.${torque.project}.sql.generation"
+ sqldbmap="${maven.build.src}/sql/oracle/sqldb.map"
+ targetDatabase="oracle"
+ useClasspath="true">
+ <fileset dir="${torque.schema.dir}"
+ includes="${torque.schema.sql.includes}"
+ excludes="${torque.schema.sql.excludes}"
+ />
+ </torque-sql>
+
+ </goal>
+
+
+ <!-- ================================================================ -->
+ <!-- EXECUTE a DB SCRIPT -->
+ <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
+ <!-- ================================================================ -->
+ <goal name="db.execute">
+ <sql driver="${org.apache.jetspeed.database.driver}"
+ classpathref="maven.dependency.classpath"
+ url="${org.apache.jetspeed.database.url}"
+ userid="${org.apache.jetspeed.database.user}"
+ password="${org.apache.jetspeed.database.password}"
+ src="${database.arg.script}">
+ </sql>
+ </goal>
+
+ <!-- ================================================================ -->
+ <!-- EXECUTE CREATE DB SQL SCRIPTS -->
+ <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
+ <!-- ================================================================ -->
+ <goal name="db.create">
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/phase3ojb-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/phase1-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/phase2-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/registry-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/prefs-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/security-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./src/sql/populate-db-default.sql" />
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./target/src/sql/${database.default.name}/test-persistence-schema.sql"
/>
+ <attainGoal name="db.execute" />
+ </goal>
+
+ <!-- ================================================================ -->
+ <!-- EXECUTE DROP DB SQL SCRIPTS -->
+ <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
+ <!-- ================================================================ -->
+ <goal name="db.drop">
+ <j:set var="database.arg.script" value="./src/sql/${database.default.name}/drop-db.sql"
/>
+ <attainGoal name="db.execute" />
+ <j:set var="database.arg.script" value="./src/sql/${database.default.name}/registry-drop-db.sql"
/>
+ <attainGoal name="db.execute" />
+ </goal>
+
+ <!-- ================================================================ -->
+ <!-- EXECUTE RECREATE DB SQL SCRIPTS -->
+ <!-- TODO: I'd like to implement this as a plugin or use commons SQL -->
+ <!-- ================================================================ -->
+ <goal name="db.recreate">
+<!-- <attainGoal name="db.drop" /> -->
+ <attainGoal name="db.create" />
+ </goal>
+
+ <goal name="quickStart"
+ description="Creates the production DB and calls portal/maven fulDeploy">
+ <attainGoal name="db.recreate" />
+ <maven:reactor
+ basedir="${basedir}"
+ includes="portal/project.xml"
+ goals="fullDeploy"
+ banner="Deploying basic Jetspeed portal suite"
+ postProcessing="false"
+ ignoreFailures="false"/>
+ </goal>
+<!--
+ <preGoal name="jar:jar">
+ <j:forEach var="lib" items="${pom.artifacts}">
+ <j:set var="dep" value="${lib.dependency}"/>
+ <j:if test="${dep.getProperty('jar.bundle')=='true'}">
+ <j:if test="${dep.type =='jar'}">
+ <ant:copy todir="${maven.build.dest}/lib" file="${lib.path}"/>
+
+ </j:if>
+ </j:if>
+ </j:forEach>
+ </preGoal>
+ -->
+ <!-- Because of the way or our cotainer handles classloading, we need
+ alter the testing class path to NOT include compnent jars at testing time
+ -->
+ <!--
+ <preGoal name="test:test">
+ <ant:path id="maven.dependency.classpath" >
+ <j:forEach var="lib" items="${pom.artifacts}">
+ <j:set var="dep" value="${lib.dependency}"/>
+ <j:if test="${dep.getProperty('component.only')!='true'}" >
+ <j:if test="${dep.type =='jar'}" >
+ <ant:pathelement path="${lib.path}" />
+ </j:if>
+ </j:if>
+ <j:if test="${dep.getProperty('component.only')=='true'}">
+ <copy todir="${basedir}/target/deploy" file="${lib.path}" overwrite="true"/>
+ </j:if>
+ </j:forEach>
+ </ant:path>
+
+ </preGoal>
+ -->
+
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
|