You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2004/06/04 04:53:45 UTC

cvs commit: jakarta-jetspeed-2/maven-plugin/src/plugin-resources .cvsignore

weaver      2004/06/03 19:53:45

  Added:       maven-plugin project.properties project.xml plugin.jelly
                        plugin.properties maven.xml
               maven-plugin/src/plugin-resources .cvsignore
  Log:
  the beginnings of the J2 maven plugin: <http://nagoya.apache.org/jira/browse/JS2-58>
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/maven-plugin/project.properties
  
  Index: project.properties
  ===================================================================
  # 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.
  
  # Remote repos
  maven.repo.remote = http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/
  
  # Maven test-classes destination directory
  maven.test.dest=${maven.build.dir}/test-classes
  
  # Display the date on the Maven web site
  maven.xdoc.date = left
  
  # Display the maven version the web site is documenting
  maven.xdoc.version = ${pom.currentVersion}
  
  maven.checkstyle.header.file=${basedir}/../checkstyle.license
  maven.checkstyle.properties=${basedir}/../checkstyle.xml
  
  maven.compile.deprecation=on
  
  maven.license.licenseFile=${basedir}/../LICENSE.TXT
  
  maven.compile.fork=yes
  maven.junit.fork=yes
  
  # Include private method and field in Javadoc.
  maven.javadoc.private=true
  
  # Removed the rule ${plugin.resources}/rulesets/naming.xml from the default
  # maven.pmd.rulesetfiles.  This is because the LongVariableName rule is to
  # restrictive.  We need to increase the limit from 12 to 20
  maven.pmd.rulesetfiles=${plugin.resources}/rulesets/strings.xml,${plugin.resources}/rulesets/junit.xml,${plugin.resources}/rulesets/braces.xml,${plugin.resources}/rulesets/basic.xml,${plugin.resources}/rulesets/unusedcode.xml,${plugin.resources}/rulesets/design.xml,${plugin.resources}/rulesets/imports.xml,${plugin.resources}/rulesets/codesize.xml
  
  maven.multiproject.type=war
  
  
  
  1.1                  jakarta-jetspeed-2/maven-plugin/project.xml
  
  Index: project.xml
  ===================================================================
  <?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.
  -->
  <project>
    <pomVersion>3</pomVersion>
    <id>maven-jetspeed2-plugin</id>
    <name>Jetspeed 2 Maven Plugin</name>
    <currentVersion>1.0.0</currentVersion> 
    <description>
      Plugin for assisting with portlet development
    </description>
    <shortDescription>Portlet Development Plugin</shortDescription>
  
    <repository>
      <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-jetspeed-2/portal</connection>
      <url>http://cvs.apache.org/viewcvs/jakarta-jetspeed-2/portal/</url>
    </repository>
  
    <dependencies>
      <dependency>
        <id>jetspeed-cps</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
            <dependency>
        <id>jetspeed2:jetspeed</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-cm</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>content-server</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-components</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-rdbms</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-persistence</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-prefs</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-security</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-registry</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>jetspeed2:jetspeed-id-generator</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>    
      <dependency>
        <id>jetspeed2:jetspeed-file-cache</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>jetspeed2:jetspeed-api</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>jetspeed2:jetspeed-locator</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed2:jetspeed-capability</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>    
      <dependency>
        <id>jetspeed2:jetspeed-page-manager</id>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>picocontainer</id>
        <version>1.0-beta-5</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>nanocontainer</id>
        <version>1.0-beta-1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>groovy</id>
       <version>1.0-beta-4-snapshot</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>asm</id>
        <version>1.4.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>pluto</id>
        <groupId>pluto</groupId>
        <version>1.0.1-SNAPSHOT</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
       </dependency>
       <dependency>
        <id>castor</id>
        <version>0.9.4.3</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-beanutils</id>
        <version>1.6.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-betwixt</id>
        <version>1.0-beta-1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-digester</id>
        <version>1.5</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-configuration</id>
        <version>SNAPSHOT</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-collections</id>
        <version>3.0</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-httpclient</id>
        <version>2.0-rc3</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-io</id>
        <version>0.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-lang</id>
        <version>2.0</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-logging</id>
        <version>1.0.3</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>fulcrum</id>
        <version>3.0-b2-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>hsqldb</id>
        <version>1.7.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>ojb:db-ojb</id>
        <version>1.0.rc6-PATCHED</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>commons-pool</id>
        <version>1.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>commons-dbcp</id>
        <version>1.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jdbc-se</id>
        <jar>jdbc-se2.0.jar</jar>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jetspeed-commons</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>junit</id>
        <version>3.8.1</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jta</id>
        <jar>jta1.0.1.jar</jar>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <!-- Why is this needed? -->
        <id>log4j</id>
        <version>1.2.8</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>mysql</id>
        <jar>mysql-connector-java-2.0.14-bin.jar</jar>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <!-- portlet-api.jar must be in %MAVEN_HOME%respository/portlet-api/jars -->
        <id>portlet-api</id>
        <version>1.0</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>servletapi</id>
        <version>2.3</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>tyrex</id>
        <version>1.0.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>xalan</id>
        <version>2.4.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>xerces</id>
        <version>2.3.0</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>xml-apis</id>
        <version>2.0.2</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>jdom</id>
        <version>b8</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>commons-modeler</id>
        <version>1.1M1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>mx4j-jmx</id>
        <groupId>mx4j</groupId>
        <version>1.1.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>mx4j-tools</id>
        <groupId>mx4j</groupId>
        <version>1.1.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
       <dependency>
        <id>jetspeed-plugins</id>
        <groupId>jetspeed2</groupId>
        <version>2.0-a1-dev</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
  
       <dependency>
        <id>regexp</id>
        <version>1.2</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>jstl</id>
        <version>1.0.2</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>taglibs:standard</id>
        <version>1.0.2</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>taglibs:request</id>
        <version>1.0.1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>velocity</id>
        <version>1.4-rc1</version>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>velocity-tools:velocity-tools-view</id>
        <version>1.1-beta1</version>
        <url>http://jakarta.apache.org/velocity</url>
        <properties>
          <war.bundle.jar>true</war.bundle.jar>
        </properties>
      </dependency>
      <dependency>
        <id>mockrunner</id>
        <version>0.2.7</version>
        <properties>
          <war.bundle.jar>false</war.bundle.jar>
        </properties>
      </dependency>
  
    </dependencies>
    <build>
      <sourceDirectory>src/java</sourceDirectory>
      <unitTestSourceDirectory>src/test</unitTestSourceDirectory>      
      
      <resources> 
              <resource> 
                  <directory>${basedir}/src/plugin-resources</directory> 
                  <targetPath>plugin-resources</targetPath> 
              </resource> 
              <resource> 
                  <directory>${basedir}</directory> 
                  <includes> 
                      <include>plugin.jelly</include> 
                      <include>plugin.properties</include> 
                      <include>project.properties</include> 
                      <include>project.xml</include> 
                  </includes> 
              </resource> 
        </resources> 
  
    </build>
    <reports>
      <report>maven-jdepend-plugin</report>
  <!--
      <report>maven-checkstyle-plugin</report>
  -->
      <report>maven-pmd-plugin</report>
      <report>maven-changelog-plugin</report>
      <report>maven-file-activity-plugin</report>
      <report>maven-developer-activity-plugin</report>
      <report>maven-license-plugin</report>
      <report>maven-javadoc-plugin</report>
      <report>maven-jxr-plugin</report>
      <report>maven-junit-report-plugin</report>
  <!--
      <report>maven-linkcheck-plugin</report>
  -->
      <report>maven-tasklist-plugin</report>
    </reports>
  </project>
  
  
  
  
  1.1                  jakarta-jetspeed-2/maven-plugin/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <!--
  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:define="jelly:define"
           xmlns:reactor="reactor"
           xmlns:maven="jelly:maven"
           xmlns:ant="jelly:ant">
  
  
  	<goal name="pam.template.deploy">
  		<echo>Deploying App ${pam.app.name}</echo>
  		<j:if test="$pam.app.war}">
  			<echo>Using war ${pam.app.war}</echo>
  		</j:if>
  		
  		<echo>${org.apache.jetspeed.deploy.war.dir}</echo>
  		<java classname="org.apache.jetspeed.tools.pamanager.PortletApplicationManager" fork="yes">
  			<classpath>
  				<pathelement path="${plugin.getDependencyPath('commons-configuration')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-commons')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-lang')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-api')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-rdbms')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-persistence')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-prefs')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-security')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-registry')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-id-generator')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-file-cache')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-locator')}"/>				
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-capability')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-page-manager')}"/>
  				<pathelement path="${plugin.getDependencyPath('picocontainer')}"/>
  				<pathelement path="${plugin.getDependencyPath('nanocontainer')}"/>
  				<pathelement path="${plugin.getDependencyPath('groovy')}"/>
  				<pathelement path="${plugin.getDependencyPath('asm')}"/>
  				<pathelement path="${plugin.getDependencyPath('pluto')}"/>
  				<pathelement path="${plugin.getDependencyPath('castor')}"/>				
  				<pathelement path="${plugin.getDependencyPath('commons-beanutils')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-betwixt')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-digester')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-collections')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-httpclient')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-io')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-lang')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-logging')}"/>
  				<pathelement path="${plugin.getDependencyPath('fulcrum')}"/>
  				<pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
  				<pathelement path="${plugin.getDependencyPath('ojb:db-ojb')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-pool')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-dbcp')}"/>
  				<pathelement path="${plugin.getDependencyPath('jdbc-se')}"/>
  				<pathelement path="${plugin.getDependencyPath('jta')}"/>
  				<pathelement path="${plugin.getDependencyPath('log4j')}"/>
  				<pathelement path="${plugin.getDependencyPath('portlet-api')}"/>
  				<pathelement path="${plugin.getDependencyPath('servletapi')}"/>
  				<pathelement path="${plugin.getDependencyPath('tyrex')}"/>
  				<pathelement path="${plugin.getDependencyPath('xalan')}"/>
  				<pathelement path="${plugin.getDependencyPath('xerces')}"/>
  				<pathelement path="${plugin.getDependencyPath('xml-apis')}"/>
  				<pathelement path="${plugin.getDependencyPath('jdom')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-modeler')}"/>
  				<pathelement path="${plugin.getDependencyPath('mx4j-jmx')}"/>
  				<pathelement path="${plugin.getDependencyPath('mx4j-tools')}"/>
  				<pathelement path="${plugin.getDependencyPath('regexp')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-cps')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-cm')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:content-server')}"/>
  				
  				
  				<pathelement path="${maven.build.dest}"/>
  				<pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>
  			</classpath>
  			<sysproperty key="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.production.database.url}"/>
  			<sysproperty key="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.production.database.driver}"/>
  			<sysproperty key="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.production.database.user}"/>
  			<sysproperty key="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.production.database.password}"/>
  			<sysproperty key="portal.use.internal.jndi" value="true"/>
  			
  			<arg value="-action"/>
  			<arg value="deploy"/>
  			
  			<arg value="-PortletAppName"/>
  			<arg value="${pam.app.name}"/>
  			
  			<arg value="-PortalName"/>
  			<arg value="jetspeed"/>
  	
  			<arg value="-warfilename"/>
  			<arg value="${pam.app.war}"/>
  			
  			<arg value="-webappDir"/>
  			<arg value="${org.apache.jetspeed.deploy.war.dir}/"/>
  		
  		</java>
  	</goal>
  	
  	<goal name="pam.template.register">
  		<echo>Performing action ${pam.action} with App ${pam.app.name}</echo>
  		
  		<echo>${org.apache.jetspeed.deploy.war.dir}</echo>
  		<java classname="org.apache.jetspeed.tools.pamanager.PortletApplicationManager" fork="yes">
  			<classpath>
  				<pathelement path="${plugin.getDependencyPath('commons-configuration')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-commons')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-lang')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-api')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-rdbms')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-persistence')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-prefs')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-security')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-registry')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-id-generator')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-file-cache')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-locator')}"/>				
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-capability')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-page-manager')}"/>
  				<pathelement path="${plugin.getDependencyPath('picocontainer')}"/>
  				<pathelement path="${plugin.getDependencyPath('nanocontainer')}"/>
  				<pathelement path="${plugin.getDependencyPath('groovy')}"/>
  				<pathelement path="${plugin.getDependencyPath('asm')}"/>
  				<pathelement path="${plugin.getDependencyPath('pluto')}"/>
  				<pathelement path="${plugin.getDependencyPath('castor')}"/>				
  				<pathelement path="${plugin.getDependencyPath('commons-beanutils')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-betwixt')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-digester')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-collections')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-httpclient')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-io')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-lang')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-logging')}"/>
  				<pathelement path="${plugin.getDependencyPath('fulcrum')}"/>
  				<pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
  				<pathelement path="${plugin.getDependencyPath('ojb:db-ojb')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-pool')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-dbcp')}"/>
  				<pathelement path="${plugin.getDependencyPath('jdbc-se')}"/>
  				<pathelement path="${plugin.getDependencyPath('jta')}"/>
  				<pathelement path="${plugin.getDependencyPath('log4j')}"/>
  				<pathelement path="${plugin.getDependencyPath('portlet-api')}"/>
  				<pathelement path="${plugin.getDependencyPath('servletapi')}"/>
  				<pathelement path="${plugin.getDependencyPath('tyrex')}"/>
  				<pathelement path="${plugin.getDependencyPath('xalan')}"/>
  				<pathelement path="${plugin.getDependencyPath('xerces')}"/>
  				<pathelement path="${plugin.getDependencyPath('xml-apis')}"/>
  				<pathelement path="${plugin.getDependencyPath('jdom')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-modeler')}"/>
  				<pathelement path="${plugin.getDependencyPath('mx4j-jmx')}"/>
  				<pathelement path="${plugin.getDependencyPath('mx4j-tools')}"/>
  				<pathelement path="${plugin.getDependencyPath('regexp')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-cps')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-cm')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:content-server')}"/>
  				<pathelement path="${maven.build.dest}"/>
  				<pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>
  			</classpath>
  			<sysproperty key="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.production.database.url}"/>
  			<sysproperty key="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.production.database.driver}"/>
  			<sysproperty key="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.production.database.user}"/>
  			<sysproperty key="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.production.database.password}"/>
  			<sysproperty key="portal.use.internal.jndi" value="true"/>
  			
  			<arg value="-action"/>
  			<arg value="${pam.action}"/>
  			
  			<arg value="-PortletAppName"/>
  			<arg value="${pam.app.name}"/>
  			
  			<arg value="-PortalName"/>
  			<arg value="jetspeed"/>
  	
  			<arg value="-warfilename"/>
  			<arg value="${pam.app.war}"/>
  			
  			<arg value="-webappDir"/>
  			<arg value="${org.apache.jetspeed.deploy.war.dir}/"/>			
  
  	
  		</java>
  	</goal>
  	
  	<goal name="pam.template.undeploy">
  		<echo>Undeploying App ${pam.app.name}</echo>
  		<j:if test="$pam.app.war}">
  			<echo>Using war ${pam.app.war}</echo>
  		</j:if>
  		
  		<echo>${org.apache.jetspeed.deploy.war.dir}</echo>
  		<java classname="org.apache.jetspeed.tools.pamanager.PortletApplicationManager" fork="yes">
  			<classpath>
  				<pathelement path="${plugin.getDependencyPath('commons-configuration')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-commons')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-lang')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-api')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-rdbms')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-persistence')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-prefs')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-security')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-registry')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-id-generator')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-file-cache')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-locator')}"/>				
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-capability')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-page-manager')}"/>
  				<pathelement path="${plugin.getDependencyPath('picocontainer')}"/>
  				<pathelement path="${plugin.getDependencyPath('nanocontainer')}"/>
  				<pathelement path="${plugin.getDependencyPath('groovy')}"/>
  				<pathelement path="${plugin.getDependencyPath('asm')}"/>
  				<pathelement path="${plugin.getDependencyPath('pluto')}"/>
  				<pathelement path="${plugin.getDependencyPath('castor')}"/>				
  				<pathelement path="${plugin.getDependencyPath('commons-beanutils')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-betwixt')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-digester')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-collections')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-httpclient')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-io')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-lang')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-logging')}"/>
  				<pathelement path="${plugin.getDependencyPath('fulcrum')}"/>
  				<pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
  				<pathelement path="${plugin.getDependencyPath('ojb:db-ojb')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-pool')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-dbcp')}"/>
  				<pathelement path="${plugin.getDependencyPath('jdbc-se')}"/>
  				<pathelement path="${plugin.getDependencyPath('jta')}"/>
  				<pathelement path="${plugin.getDependencyPath('log4j')}"/>
  				<pathelement path="${plugin.getDependencyPath('portlet-api')}"/>
  				<pathelement path="${plugin.getDependencyPath('servletapi')}"/>
  				<pathelement path="${plugin.getDependencyPath('tyrex')}"/>
  				<pathelement path="${plugin.getDependencyPath('xalan')}"/>
  				<pathelement path="${plugin.getDependencyPath('xerces')}"/>
  				<pathelement path="${plugin.getDependencyPath('xml-apis')}"/>
  				<pathelement path="${plugin.getDependencyPath('jdom')}"/>
  				<pathelement path="${plugin.getDependencyPath('commons-modeler')}"/>
  				<pathelement path="${plugin.getDependencyPath('mx4j-jmx')}"/>
  				<pathelement path="${plugin.getDependencyPath('mx4j-tools')}"/>
  				<pathelement path="${plugin.getDependencyPath('regexp')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-cps')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:jetspeed-cm')}"/>
  				<pathelement path="${plugin.getDependencyPath('jetspeed2:content-server')}"/>
  				<pathelement path="${maven.build.dest}"/>
  				<pathelement path="${org.apache.jetspeed.production.jdbc.drivers.path}"/>
  			</classpath>
  			<sysproperty key="org.apache.jetspeed.database.url" value="${org.apache.jetspeed.production.database.url}"/>
  			<sysproperty key="org.apache.jetspeed.database.driver" value="${org.apache.jetspeed.production.database.driver}"/>
  			<sysproperty key="org.apache.jetspeed.database.user" value="${org.apache.jetspeed.production.database.user}"/>
  			<sysproperty key="org.apache.jetspeed.database.password" value="${org.apache.jetspeed.production.database.password}"/>
  			<sysproperty key="portal.use.internal.jndi" value="true"/>
  			
  			<arg value="-action"/>
  			<arg value="undeploy"/>
  			
  			<arg value="-PortletAppName"/>
  			<arg value="${pam.app.name}"/>
  			
  			<arg value="-PortalName"/>
  			<arg value="jetspeed"/>
  			
  			<arg value="-ApplicationType"/>
  			<arg value="${pam.app.type}"/>
  			
  			<arg value="-webappDir"/>
  			<arg value="${org.apache.jetspeed.deploy.war.dir}/"/>
  	
  		
  		</java>
  	</goal>
  	
  
    <goal name="jetspeed2:register">
    	<j:set var="pam.action" value="register"/>
   	<j:set var="pam.app.name" value="${org.apache.jetspeed.portlet.app.name}"/>
   	<j:set var="pam.app.war" value="${org.apache.jetspeed.portlet.war}"/>
   	<attainGoal name="pam.template.register"/>
    </goal>
  
    <goal name="jetspeed2:unregister">
    	<j:set var="pam.action" value="unregister"/>
   	<j:set var="pam.app.name" value="${org.apache.jetspeed.portlet.app.name}"/>
   	<j:set var="pam.app.war" value="${org.apache.jetspeed.portlet.war}"/>
   	<attainGoal name="pam.template.register"/>
    </goal>
  
    <goal name="jetspeed2:deploy">
   	<j:set var="pam.app.name" value="${org.apache.jetspeed.portlet.app.name}"/>
   	<j:set var="pam.app.war" value="${org.apache.jetspeed.portlet.war}"/>
   	<attainGoal name="pam.template.deploy"/>
    </goal>
  
  
    <goal name="jetspeed2:undeploy">
   	<j:set var="pam.app.name" value="${org.apache.jetspeed.portlet.app.name}"/>
   	<j:set var="pam.app.type" value="webapp"/>
   	<attainGoal name="pam.template.undeploy"/>
    </goal>
  
    <goal name="jetspeed2:start.hsql">
    	<echo message="====================================" />
    	<echo message="  Starting HSQL Db    " />
    	<echo message="====================================" />
           <java classname="org.hsqldb.Server" fork="yes">
            <classpath>
              <path refid="maven.dependency.classpath"/>
              <pathelement path="${maven.build.dest}"/>
              <pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
            </classpath>
              <arg value="-database" />
              <arg value="${org.apache.jetspeed.plugin.root}/plugin-resources/Production" />
              <arg value="-port" />
              <arg value="9001" />
              <arg value="-silent" />
              <arg value="true" />
              <arg value="-trace" />
              <arg value="false" />
          </java>
    </goal>
    
    
    
    <goal name="jetspeed2:db.execute">
    	<echo>Execing SQL: ${database.arg.script}</echo>
      <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}">
        <classpath>
          <path refid="maven.dependency.classpath"/>
          <pathelement path="${org.apache.jetspeed.jdbc.drivers.path}"/>
          <pathelement path="${plugin.getDependencyPath('hsqldb')}"/>
        </classpath>
      </sql>
    </goal>
    
    <goal name="jetspeed2:db.create">
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/phase3ojb-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/phase1-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/phase2-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/registry-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/prefs-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/security-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/populate-db-default.sql" />
      <attainGoal name="jetspeed2:db.execute" />
      <j:set var="database.arg.script" value="${org.apache.jetspeed.plugin.root}/plugin-resources/${org.apache.jetspeed.database.default.name}/test-persistence-schema.sql" />
      <attainGoal name="jetspeed2:db.execute" />
    </goal>
    
  
    
    <goal name="jetspeed2:build.portal">  	
    	
    	<attainGoal name="war:webapp" />
    	<j:set var="webapp.build.webinf" value="${maven.war.webapp.dir}/WEB-INF"/>
    	<j:set var="webapp.build.lib" value="${webapp.build.webinf}/lib"/>
    	
    	 <j:forEach var="lib" items="${plugin.artifacts}">
        <j:set var="dep" value="${lib.dependency}"/>
        <j:if test="${dep.getProperty('war.bundle')=='true'}">                                                                                
           <j:if test="${dep.type =='jar'}">
             <ant:copy todir="${webapp.build.lib}" file="${lib.path}"/>
           </j:if>
                                                                                  
           <j:if test="${dep.type =='tld'}">
             <ant:copy todir="${webapp.build.tlds}" file="${lib.path}"/>
           </j:if>
                                                                                  
        </j:if>
        <!-- TO BE REMOVED -->
        <j:if test="${dep.getProperty('war.bundle.jar')=='true'}">
           <ant:echo>
              DEPRECATION WARNING:
              Use : war.bundle instead of war.bundle.jar
            </ant:echo>
          <ant:copy todir="${webapp.build.lib}" file="${lib.path}"/>
        </j:if>
         <!-- END OF TO BE REMOVED -->
      </j:forEach>
    	
    	<copy todir="${maven.war.webapp.dir}" failonerror="true" overwrite="false">
           <fileset dir="${org.apache.jetspeed.plugin.root}/plugin-resources/webapp" />            	       	       
       </copy>	  
       <!--
       <touch >
              <fileset dir="${basedir}/src/webapp"/>
         </touch>
         -->
       <attainGoal name="war:war" />
    </goal>
    
    <goal name="jetspeed2:deploy.portal">  	
    	
    	  <echo>Copying from ${maven.repo.local} to ${catalina.shared.lib}...</echo>
      <!--<copy file="${maven.repo.local}/pluto-container/jars/pluto-1.0.jar" todir="${catalina.shared.lib}"/>-->
      <copy file="${maven.repo.local}/pluto/jars/pluto-1.0.1-SNAPSHOT.jar" todir="${catalina.shared.lib}"/>
      <copy file="${maven.repo.local}/commons-lang/jars/commons-lang-2.0.jar" todir="${catalina.shared.lib}"/>
      <copy file="${maven.repo.local}/commons-logging/jars/commons-logging-1.0.3.jar" todir="${catalina.shared.lib}"/>
      <copy file="${maven.repo.local}/commons-configuration/jars/commons-configuration-1.0-dev.jar" todir="${catalina.shared.lib}"/>
      <copy file="${maven.repo.local}/log4j/jars/log4j-1.2.8.jar" todir="${catalina.shared.lib}"/>
      <copy file="${maven.repo.local}/struts-portlet/jars/struts-portlet-spi-0.1.jar" todir="${catalina.shared.lib}"/>
      
      <copy file="${maven.repo.local}/jetspeed2/jars/jetspeed-commons-2.0-a1-dev.jar" todir="${catalina.shared.lib}"/>
      <copy file="${maven.repo.local}/portlet-api/jars/portlet-api-1.0.jar" todir="${catalina.shared.lib}"/>  	
    	
    	<copy todir="${deploy.war.dir}" failonerror="true" overwrite="true">
           <fileset dir="${maven.war.build.dir}" >  
               <include name="${maven.war.final.name}" />
           </fileset>	             	       	       
       </copy>	   
  
       
       <copy file="${org.apache.jetspeed.plugin.root}/plugin-resources/jetspeed.xml" tofile="${deploy.war.dir}/jetspeed.xml" overwrite="true">
          <filterset begintoken="@" endtoken="@">
            <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>
       
       
        <delete dir="${deploy.war.dir}/${maven.war.web.app.name}"/>
       <unwar src="${deploy.war.dir}/${maven.war.final.name}" dest="${deploy.war.dir}/${maven.war.web.app.name}"/>
       
        <!--<attainGoal name="jetspeed2:unregister.core.pa" />-->
       <j:set var="pam.action" value="register"/>
   	 <j:set var="pam.app.name" value="jetspeed"/>
   	 <j:set var="pam.app.war" value="${deploy.war.dir}/${maven.war.final.name}"/>
   	 <attainGoal name="pam.template.register"/>
    </goal>
    
    <goal name="jetspeed2:unregister.core.pa">
    	  <j:set var="pam.action" value="unregister"/>
   	 <j:set var="pam.app.name" value="jetspeed"/>
   	 <j:set var="pam.app.war" value="${deploy.war.dir}/${maven.war.final.name}"/>
   	 <attainGoal name="pam.template.register"/>
    </goal>
    
  </project>
  
  
  
  1.1                  jakarta-jetspeed-2/maven-plugin/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  org.apache.jetspeed.production.database.url = jdbc:hsqldb:hsql://127.0.0.1:9001
  org.apache.jetspeed.production.database.driver = org.hsqldb.jdbcDriver
  org.apache.jetspeed.production.database.user = sa
  org.apache.jetspeed.production.database.password =
  
  org.apache.jetspeed.production.jdbc.drivers.path=
  org.apache.jetspeed.production.database.default.name=hsql
  org.apache.jetspeed.production.database.ojb.platform=Hsqldb
  
  # try and pull from the user's build.properties settings
  org.apache.jetspeed.deploy.war.dir=${deploy.war.dir}
  
  org.apache.jetspeed.portlet.app.name=MyApp
  org.apache.jetspeed.portlet.war= ${maven.war.build.dir}/${maven.war.final.name}
  
  org.apache.jetspeed.plugin.root=${maven.home.local}/plugins/${plugin.artifactId}-${plugin.currentVersion}
  
  org.apache.jetspeed.database.url = jdbc:hsqldb:hsql://127.0.0.1:9001
  org.apache.jetspeed.database.driver = org.hsqldb.jdbcDriver
  org.apache.jetspeed.database.user = sa
  org.apache.jetspeed.database.password =
  
  org.apache.jetspeed.jdbc.drivers.path=
  org.apache.jetspeed.database.default.name=hsql
  org.apache.jetspeed.database.ojb.platform=Hsqldb
  
  maven.war.build.dir=${maven.build.dir}
  maven.war.webapp.dir=${maven.war.build.dir}/${pom.artifactId}
  
  
  maven.war.final.name=jetspeed.war
  maven.war.web.app.name=jetspeed
  
  
  
  1.1                  jakarta-jetspeed-2/maven-plugin/maven.xml
  
  Index: maven.xml
  ===================================================================
  <!--
  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">
           
   <preGoal name="plugin:deploy">
   	 <attainGoal name="copyDb" />
   	 <attainGoal name="copyPortlaWebApp" />
   </preGoal>        
   
    <preGoal name="plugin:install">
   	 <attainGoal name="copyDb" />
   	 <attainGoal name="copyPortlaWebApp" />
   </preGoal>   
  
     <goal name="copyDb">
  	 <copy todir="src/plugin-resources" overwrite="true" failonerror="true">
           <fileset dir="../src/database/hsql" >         	
           	<include name="Empty.script"/>
           	<include name="Production.properties"/>
           </fileset>
      </copy>
       
       
       <copy todir="src/plugin-resources/" overwrite="true" failonerror="true">
           <fileset dir="../target/src/sql" />   
           <fileset dir="../src/sql" >
           	 <include name="*.sql" />
           </fileset>          	       	       
       </copy>
       
       <move file="${basedir}/src/plugin-resources/Empty.script" tofile="${basedir}/src/plugin-resources/Production.script" overwrite="true"/>
  	 
  	<j:set var="org.apache.jetspeed.database.url" value="jdbc:hsqldb:src/plugin-resources/Production"/>
      <j:set var="org.apache.jetspeed.database.driver" value="org.hsqldb.jdbcDriver"/>
      <j:set var="org.apache.jetspeed.database.user" value="sa"/>
      <j:set var="org.apache.jetspeed.database.password" value=""/>
      <j:set var="org.apache.jetspeed.database.default.name" value="hsql" />
      <attainGoal name="db.create" />	 
  </goal>
  
  <goal name="copyPortlaWebApp">
  	 <copy todir="src/plugin-resources/webapp" overwrite="true" failonerror="true">
           <fileset dir="../portal/src/webapp" />            	       	       
       </copy>
       <copy todir="src/plugin-resources/" overwrite="true" failonerror="true">
           <fileset dir="../portal/src/resources" />            	       	       
       </copy>		
  </goal>
  
    <goal name="db.execute">
      <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}">
        <classpath>
          <path refid="maven.dependency.classpath"/>
          <pathelement path="${org.apache.jetspeed.jdbc.drivers.path}"/>
        </classpath>
      </sql>
    </goal>
    
      <goal name="db.create">
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/phase3ojb-schema.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/phase1-schema.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/phase2-schema.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/registry-schema.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/prefs-schema.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/security-schema.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/populate-db-default.sql" />
      <attainGoal name="db.execute" />
      <j:set var="database.arg.script" value="./src/plugin-resources/${org.apache.jetspeed.database.default.name}/test-persistence-schema.sql" />
      <attainGoal name="db.execute" />
    </goal>
    
  
    
  </project>
  
  
  
  1.1                  jakarta-jetspeed-2/maven-plugin/src/plugin-resources/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  WEB-INF
  hsql
  images
  logs
  mysql
  oracle
  pages
  LogInRedirector.jsp
  Production.properties
  Production.script
  error.jsp
  index.jsp
  login.jsp
  logout.jsp
  populate-db-default.sql
  populate-entities-for-default-psml.sql
  populate-userinfo-for-default-psml.sql
  webapp
  jetspeed.xml
  
  
  

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