taylor      2004/04/08 12:10:42

  Added:       plugin   plugin.jelly project.xml project.properties
                        plugin.properties LICENSE.txt
               plugin/target/classes project.xml plugin.properties
                        project.properties plugin.jelly
               plugin/xdocs properties.xml navigation.xml goals.xml
                        index.xml changes.xml
               plugin/target maven-jetspeed-plugin-1.0-SNAPSHOT.jar
  Log:
  moving plugin down to root directory

  make it easier for me to get multisite build working

  

  PR:

  Obtained from:

  Submitted by: 

  Reviewed by:  

  CVS: ----------------------------------------------------------------------

  CVS: PR:

  CVS:   If this change addresses a PR in the problem report tracking

  CVS:   database, then enter the PR number(s) here.

  CVS: Obtained from:

  CVS:   If this change has been taken from another system, such as NCSA,

  CVS:   then name the system in this line, otherwise delete it.

  CVS: Submitted by:

  CVS:   If this code has been contributed to Apache by someone else; i.e.,

  CVS:   they sent us a patch or a new module, then include their name/email

  CVS:   address here. If this is your work then delete this line.

  CVS: Reviewed by:

  CVS:   If we are doing pre-commit code reviews and someone else has

  CVS:   reviewed your changes, include their name(s) here.

  CVS:   If you have not had it reviewed then delete this line.

  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/plugin/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>

  <!--

  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.

  -->

  <!--

    =============================================================================

      Jetspeed plugin for Maven.

    =============================================================================

  -->

  <project xmlns:j="jelly:core" xmlns:u="jelly:util">

      <!--

       ========================================================================

         Create the custom WAR from binary distribution

       ========================================================================

    -->

      <goal name="jetspeed:war" description="Create custom .war file based on jetspeed 
binary distribution">

          <j:set var="maven.war.src" value="${war.stage.dir}/webapp"/>

          <echo>[DEBUG] maven.src.dir = ${maven.src.dir}</echo>

          <echo>[DEBUG] maven.war.src = ${maven.war.src}</echo>

          <echo>[DEBUG] maven.build.dir = ${maven.build.dir}</echo>

          <echo>[DEBUG] maven.war.build.dir = ${maven.war.build.dir}</echo>

          <echo>[DEBUG] maven.dependency.classpath = 
${maven.dependency.classpath}</echo>        

          <!-- recreate target area -->

          <!--attainGoal name="war:init"/-->

          <mkdir dir="${maven.war.src}"/>

          <!-- recreate stage area -->

          <delete dir="${war.stage.dir}"/>

          <mkdir dir="${war.stage.dir}"/>

          <!-- copy distribution war to stage directory -->

          <j:forEach var="dep" items="${pom.dependencies}">

              <j:if test="${dep.getType() == 'distribution'}">

                  <j:set var="dist.name" value="${dep.getId()}"/>

                  <j:set var="internal.war.path" 
value="${dep.getProperty('dist.native.name')}"/>

                  <j:set var="dist.dependency.zip" 
value="${maven.repo.local}/${dep.getId()}/distributions/${dep.getArtifact()}"/>

                  <echo>[DEBUG] dist.dependency.zip = ${dist.dependency.zip}</echo>

                  <echo>[DEBUG] dist.name = ${dist.name}</echo>

                  <echo>[DEBUG] internal.war.path= ${internal.war.path}</echo>

                  <!-- extract .war file from distribution -->

                  <unzip src="${dist.dependency.zip}" dest="${maven.war.src}">

                      <!-- This only extracts the .war -->

                      <patternset>

                          <!--include name="**/*.war"/-->

                          <include name="**/webapp/*.*"/>

                      </patternset>

                      <!-- This extracts the .war and expands it -->

                      <!--fileset dir=".">

                          <include name="**/*.war"/>

                          <exclude name="**/${pom.id}.war"/>                        

                      </fileset-->

                  </unzip>

                  <move todir="${maven.war.src}">

                      <fileset dir="${maven.war.src}/${internal.war.path}/webapp"/>

                  </move>

                  <!-- delete work files from distribution -->

                  <delete dir="${maven.war.src}/${internal.war.path}"/>

                  <!--delete dir="${maven.war.src}/META-INF"/>

                  <delete dir="${maven.war.src}/WEB-INF/lib"/-->

              </j:if>

          </j:forEach>

          <!-- copy application webapp source to stage webapp -->

          <copy todir="${maven.war.src}" overwrite="true">

              <fileset dir="${war.src}">

                  <exclude name="**/*CVS*"/>

                  <exclude name="**/*Entries*"/>

                  <exclude name="**/*Repository*"/>

                  <exclude name="**/*Tag*"/>

              </fileset>

          </copy>

          <!-- create project .jar file -->

          <attainGoal name="java:jar"/>

          <!-- copy jar to web app directory -->

          <copy file="${maven.build.dir}/${maven.final.name}.jar" 
todir="${maven.war.src}/WEB-INF/lib"/>

          <!-- remove class files -->

          <!--delete>

              <fileset dir="${maven.build.dir}/classes" includes="**/*.class"/>

          </delete-->

          <!-- set version tag -->

          <attainGoal name="jetspeed:war-version-tag"/>        

          <!--  merge any property files and copy environment specific local 
registries -->        

          <attainGoal name="jetspeed:war-config"/>        

          <!-- create project .war file -->

          <attainGoal name="war:war"/>

      </goal>

      <!--

       ========================================================================

         Embed release version tag into bottom navigation

       ========================================================================

    -->    

      <goal name="jetspeed:war-version-tag" description="Updates release version tag 
shown in the bottom navigation">

          <replace 
file="${maven.war.src}/WEB-INF/templates/vm/navigations/html/bottom.vm" 
token="(release)" value="${pom.currentVersion}"/>

      </goal>

      <!--

       ========================================================================

         Override jetspeed property files and add local registries

       ========================================================================

    -->    

      <goal name="jetspeed:war-config" description="Override jetspeed property files 
and add local registries">

          <!-- define custom task for oeverriding properties -->

          <taskdef name="props_override" 
classname="org.apache.jetspeed.util.ant.OverwritePropertiesTask">

              <classpath>

                  <path refid="maven.dependency.classpath"/>

              </classpath>

          </taskdef>

          <!-- set proper environment property files -->

          <echo>Targeting ${maven.env.name} environment ...</echo>

          <j:set var="props.dir" value="${maven.war.src}/WEB-INF/conf"/>

          <u:tokenize var="merge.prop.files" 
delim=",">${maven.merge.properties}</u:tokenize>

          <j:forEach items="${merge.prop.files}" var="prop.file">

              <echo>[DEBUG] Merging ${prop.file}</echo>

              <j:if test="${maven.env.name == null}">

                  <echo>[DEBUG] Merging ${prop.file} for ${maven.env.name}</echo>

                  <props_override 
mergeBaseProperties="${props.dir}/${prop.file}.properties" 
mergeProperties="${props.dir}/${prop.file}-${maven.env.name}.properties.merge" 
includesDir="${props.dir}" failonerror="false"/>

              </j:if>

              <props_override 
mergeBaseProperties="${props.dir}/${prop.file}.properties" 
mergeProperties="${props.dir}/${prop.file}.properties.merge" 
includesDir="${props.dir}" failonerror="false"/>

          </j:forEach>

          <!-- environment specific local registries -->

          <j:if test="${maven.env.name == null}">

              <u:tokenize var="local.xreg.files" 
delim=",">${maven.copy.env.xreg}</u:tokenize>

              <j:forEach items="${local.xreg.files}" var="xreg.file">

                  <echo>[DEBUG] Copying local-${xreg.file} for ${maven.env.name}</echo>

                  <copy 
file="${props.dir}/local-${xreg.file}-${maven.env.name}.xreg.copy" 
toFile="${props.dir}/local-${xreg.file}.xreg" failonerror="false"/>

              </j:forEach>

          </j:if>

          <delete>

              <fileset dir="${props.dir}" includes="**/*.properties.merge"/>

              <fileset dir="${props.dir}" includes="**/local-*.xreg.copy"/>

          </delete>

      </goal>

      <!--

       ========================================================================

         Create the Jetspeed WAR

       ========================================================================

    -->

      <goal name="jetspeed:overlay" description="Overlay a vanilla Jetspeed War file 
on your existing code.">

          <!-- this seems required to setup the plugin context -->

          <attainGoal name="war:init"/>

          <j:set var="maven.jetspeed.prewar.dir" 
value="${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.build.dir')}"/>

          <available file="${maven.jetspeed.prewar.dir}/${pom.artifactId}.war" 
property="maven.jetspeed.prewar.exists"/>

          <j:choose>

              <j:when test="${maven.jetspeed.prewar.exists}">

                  <!-- Expand the project war -->

                  <unwar src="${maven.jetspeed.prewar.dir}/${pom.artifactId}.war" 
dest="${maven.jetspeed.build.dir}/${pom.artifactId}"/>

                  <attainGoal name="jetspeed:webapp-update"/>

                  <!-- delete the war because it no longer reflects the expanded 
webapp -->

                  <delete file="${maven.jetspeed.prewar.dir}/${pom.artifactId}.war"/>

              </j:when>

              <j:otherwise>

                  <available 
file="${maven.jetspeed.prewar.dir}/${pom.artifactId}/WEB-INF" type="dir" 
property="maven.jetspeed.prewebapp.exists"/>

                  <j:choose>

                      <j:when test="${maven.jetspeed.prewebapp.exists}">

                          <copy todir="${maven.jetspeed.build.dir}/${pom.artifactId}">

                              <fileset 
dir="${maven.jetspeed.prewar.dir}/${pom.artifactId}"/>

                          </copy>

                          <attainGoal name="jetspeed:webapp-update"/>

                      </j:when>

                      <j:otherwise>

                          <echo>

                Either a war or a webapp must exist. Please call the War plugin

                first.

              </echo>

                      </j:otherwise>

                  </j:choose>

              </j:otherwise>

          </j:choose>

      </goal>

      <goal name="jetspeed:webapp-update">

          <unwar src="${maven.jetspeed.vanilla.war}" 
dest="${maven.jetspeed.build.dir}/${pom.artifactId}" overwrite="true"/>

          <attainGoal name="jetspeed:merge-properties"/>

      </goal>

      <goal name="jetspeed:merge-properties" description="Merge properties into 
vanilla property files">

          <taskdef name="overwriteproperties" 
classname="org.apache.jetspeed.util.ant.OverwritePropertiesTask">

              <classpath>

                  <path refid="maven.dependency.classpath"/>

              </classpath>

          </taskdef>

          <echo> merge_jrp required </echo>

          <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/JetspeedResources.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeJetspeedResources.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

          <echo> merge_security required </echo>

          <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/JetspeedSecurity.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeJetspeedSecurity.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

          <echo> merge_trp required </echo>

          <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/TurbineResources.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeTurbineResources.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

          <echo> merge_torque required </echo>

          <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/Torque.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeTorque.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

      </goal>

  </project>

  
  
  
  1.1                  jakarta-jetspeed/plugin/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
<!--
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-jetspeed-plugin</id>
        <name>Maven Jetspeed Plug-in</name>
        <currentVersion>1.0-SNAPSHOT</currentVersion>
        <organization>
                <name>Apache Software Foundation</name>
                <url>http://jakarta.apache.org/</url>
                
<logo>http://jakarta.apache.org/turbine/maven/images/jakarta-logo-blue.gif</logo>
        </organization>
        <inceptionYear>2002</inceptionYear>
        <package>org.apache.jetspeed</package>
        <logo>http://jakarta.apache.org/turbine/maven/images/maven.jpg</logo>
        <description>

    Plugin for Jetspeed (http://jakarta.apache.org/jetspeed) that

    allows you to build to build a WAR for Cactus (http://jakarta.apache.org/cactus)

    testing

  </description>
        <shortDescription>Jetspeed plugin</shortDescription>
        <url/>
        <issueTrackingUrl/>
        <siteAddress>jakarta.apache.org</siteAddress>
        <siteDirectory/>
        <distributionDirectory/>
        <developers>
                <developer>
                        <name>David Eric Pugh</name>
                        <id>dep4b</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Upstate</organization>
                        <roles>
                                <role>Java Developer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Mark Orciuch</name>
                        <id>morciuch</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Apache</organization>
                        <roles>
                                <role>Java Developer</role>
                        </roles>
                </developer>
        </developers>
        <repository>
                <connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:jakarta-jetspeed/src/plugins-build/jetspeed/</connection>
                
<url>http://cvs.apache.org/viewcvs/jakarta-jetspeed/src/plugins-build/jetspeed/</url>
        </repository>
        <build>
                <sourceDirectory>${basedir}/src/main</sourceDirectory>
                <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
                <unitTest>
                        <includes>
                                <include>**/*Test.java</include>
                        </includes>
                </unitTest>
                <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>
</project>


  
  
  1.1                  jakarta-jetspeed/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.
  
  # -------------------------------------------------------------------
  # P R O J E C T  P R O P E R T I E S
  # -------------------------------------------------------------------
  maven.xdoc.date=left
  maven.xdoc.version=${pom.currentVersion}
  maven.checkstyle.format = turbine
  
  
  
  1.1                  jakarta-jetspeed/plugin/plugin.properties
  
  Index: plugin.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.
  
  # -------------------------------------------------------------------
  # Default properties for the Jetspeed Plugin
  # -------------------------------------------------------------------
  
  # The location of the plain vanilla Jetspeed war.
  maven.jetspeed.vanilla.war = ${plugin.dir}/jetspeed.war
  
  # Location where the war will be created. Defaults to
  # ${maven.build.dir}/jetspeed-cactus
  maven.jetspeed.build.dir = ${maven.build.dir}
  
  # Location where the various Merge* merge files are
  maven.jetspeed.merge.dir = ./src/conf/
  
  # Location of app-specific files to include in the .war file
  war.src = ${basedir}/webapp
  
  # Location where temporary files used for the .war file are stored
  war.stage.dir = ${basedir}/stage
  
  # Target environment (LOCAL,DEV,TEST,PROD, default NONE)
  maven.env.name = 
  
  # Comma separated list of property files to merge (default NONE). 
  # Extension assumed to be .properties.
  # Filename format when ${maven.env.name} is NOT used: 
[property.filename].properties.merge
  # Filename format when ${maven.env.name} is used: 
[property.filename]-${maven.env.name}.properties.merge
  maven.merge.properties = 
  
  # Comma separated list of environment specific registries to copy (default NONE). 
  # Filename format: local-[registry.name]-${maven.env.name}.xreg.copy
  # For example, to copy local-security-${maven.env.name}.xreg.copy to 
local-security.xreg, set it to 'security'
  maven.copy.xreg = 
  
  
  
  1.1                  jakarta-jetspeed/plugin/LICENSE.txt
  
  Index: LICENSE.txt
  ===================================================================
                                   Apache License
                             Version 2.0, January 2004
                          http://www.apache.org/licenses/
  
     TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  
     1. Definitions.
  
        "License" shall mean the terms and conditions for use, reproduction,
        and distribution as defined by Sections 1 through 9 of this document.
  
        "Licensor" shall mean the copyright owner or entity authorized by
        the copyright owner that is granting the License.
  
        "Legal Entity" shall mean the union of the acting entity and all
        other entities that control, are controlled by, or are under common
        control with that entity. For the purposes of this definition,
        "control" means (i) the power, direct or indirect, to cause the
        direction or management of such entity, whether by contract or
        otherwise, or (ii) ownership of fifty percent (50%) or more of the
        outstanding shares, or (iii) beneficial ownership of such entity.
  
        "You" (or "Your") shall mean an individual or Legal Entity
        exercising permissions granted by this License.
  
        "Source" form shall mean the preferred form for making modifications,
        including but not limited to software source code, documentation
        source, and configuration files.
  
        "Object" form shall mean any form resulting from mechanical
        transformation or translation of a Source form, including but
        not limited to compiled object code, generated documentation,
        and conversions to other media types.
  
        "Work" shall mean the work of authorship, whether in Source or
        Object form, made available under the License, as indicated by a
        copyright notice that is included in or attached to the work
        (an example is provided in the Appendix below).
  
        "Derivative Works" shall mean any work, whether in Source or Object
        form, that is based on (or derived from) the Work and for which the
        editorial revisions, annotations, elaborations, or other modifications
        represent, as a whole, an original work of authorship. For the purposes
        of this License, Derivative Works shall not include works that remain
        separable from, or merely link (or bind by name) to the interfaces of,
        the Work and Derivative Works thereof.
  
        "Contribution" shall mean any work of authorship, including
        the original version of the Work and any modifications or additions
        to that Work or Derivative Works thereof, that is intentionally
        submitted to Licensor for inclusion in the Work by the copyright owner
        or by an individual or Legal Entity authorized to submit on behalf of
        the copyright owner. For the purposes of this definition, "submitted"
        means any form of electronic, verbal, or written communication sent
        to the Licensor or its representatives, including but not limited to
        communication on electronic mailing lists, source code control systems,
        and issue tracking systems that are managed by, or on behalf of, the
        Licensor for the purpose of discussing and improving the Work, but
        excluding communication that is conspicuously marked or otherwise
        designated in writing by the copyright owner as "Not a Contribution."
  
        "Contributor" shall mean Licensor and any individual or Legal Entity
        on behalf of whom a Contribution has been received by Licensor and
        subsequently incorporated within the Work.
  
     2. Grant of Copyright License. Subject to the terms and conditions of
        this License, each Contributor hereby grants to You a perpetual,
        worldwide, non-exclusive, no-charge, royalty-free, irrevocable
        copyright license to reproduce, prepare Derivative Works of,
        publicly display, publicly perform, sublicense, and distribute the
        Work and such Derivative Works in Source or Object form.
  
     3. Grant of Patent License. Subject to the terms and conditions of
        this License, each Contributor hereby grants to You a perpetual,
        worldwide, non-exclusive, no-charge, royalty-free, irrevocable
        (except as stated in this section) patent license to make, have made,
        use, offer to sell, sell, import, and otherwise transfer the Work,
        where such license applies only to those patent claims licensable
        by such Contributor that are necessarily infringed by their
        Contribution(s) alone or by combination of their Contribution(s)
        with the Work to which such Contribution(s) was submitted. If You
        institute patent litigation against any entity (including a
        cross-claim or counterclaim in a lawsuit) alleging that the Work
        or a Contribution incorporated within the Work constitutes direct
        or contributory patent infringement, then any patent licenses
        granted to You under this License for that Work shall terminate
        as of the date such litigation is filed.
  
     4. Redistribution. You may reproduce and distribute copies of the
        Work or Derivative Works thereof in any medium, with or without
        modifications, and in Source or Object form, provided that You
        meet the following conditions:
  
        (a) You must give any other recipients of the Work or
            Derivative Works a copy of this License; and
  
        (b) You must cause any modified files to carry prominent notices
            stating that You changed the files; and
  
        (c) You must retain, in the Source form of any Derivative Works
            that You distribute, all copyright, patent, trademark, and
            attribution notices from the Source form of the Work,
            excluding those notices that do not pertain to any part of
            the Derivative Works; and
  
        (d) If the Work includes a "NOTICE" text file as part of its
            distribution, then any Derivative Works that You distribute must
            include a readable copy of the attribution notices contained
            within such NOTICE file, excluding those notices that do not
            pertain to any part of the Derivative Works, in at least one
            of the following places: within a NOTICE text file distributed
            as part of the Derivative Works; within the Source form or
            documentation, if provided along with the Derivative Works; or,
            within a display generated by the Derivative Works, if and
            wherever such third-party notices normally appear. The contents
            of the NOTICE file are for informational purposes only and
            do not modify the License. You may add Your own attribution
            notices within Derivative Works that You distribute, alongside
            or as an addendum to the NOTICE text from the Work, provided
            that such additional attribution notices cannot be construed
            as modifying the License.
  
        You may add Your own copyright statement to Your modifications and
        may provide additional or different license terms and conditions
        for use, reproduction, or distribution of Your modifications, or
        for any such Derivative Works as a whole, provided Your use,
        reproduction, and distribution of the Work otherwise complies with
        the conditions stated in this License.
  
     5. Submission of Contributions. Unless You explicitly state otherwise,
        any Contribution intentionally submitted for inclusion in the Work
        by You to the Licensor shall be under the terms and conditions of
        this License, without any additional terms or conditions.
        Notwithstanding the above, nothing herein shall supersede or modify
        the terms of any separate license agreement you may have executed
        with Licensor regarding such Contributions.
  
     6. Trademarks. This License does not grant permission to use the trade
        names, trademarks, service marks, or product names of the Licensor,
        except as required for reasonable and customary use in describing the
        origin of the Work and reproducing the content of the NOTICE file.
  
     7. Disclaimer of Warranty. Unless required by applicable law or
        agreed to in writing, Licensor provides the Work (and each
        Contributor provides its Contributions) on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
        implied, including, without limitation, any warranties or conditions
        of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
        PARTICULAR PURPOSE. You are solely responsible for determining the
        appropriateness of using or redistributing the Work and assume any
        risks associated with Your exercise of permissions under this License.
  
     8. Limitation of Liability. In no event and under no legal theory,
        whether in tort (including negligence), contract, or otherwise,
        unless required by applicable law (such as deliberate and grossly
        negligent acts) or agreed to in writing, shall any Contributor be
        liable to You for damages, including any direct, indirect, special,
        incidental, or consequential damages of any character arising as a
        result of this License or out of the use or inability to use the
        Work (including but not limited to damages for loss of goodwill,
        work stoppage, computer failure or malfunction, or any and all
        other commercial damages or losses), even if such Contributor
        has been advised of the possibility of such damages.
  
     9. Accepting Warranty or Additional Liability. While redistributing
        the Work or Derivative Works thereof, You may choose to offer,
        and charge a fee for, acceptance of support, warranty, indemnity,
        or other liability obligations and/or rights consistent with this
        License. However, in accepting such obligations, You may act only
        on Your own behalf and on Your sole responsibility, not on behalf
        of any other Contributor, and only if You agree to indemnify,
        defend, and hold each Contributor harmless for any liability
        incurred by, or claims asserted against, such Contributor by reason
        of your accepting any such warranty or additional liability.
  
     END OF TERMS AND CONDITIONS
  
     APPENDIX: How to apply the Apache License to your work.
  
        To apply the Apache License to your work, attach the following
        boilerplate notice, with the fields enclosed by brackets "[]"
        replaced with your own identifying information. (Don't include
        the brackets!)  The text should be enclosed in the appropriate
        comment syntax for the file format. We also recommend that a
        file or class name and description of purpose be included on the
        same "printed page" as the copyright notice for easier
        identification within third-party archives.
  
     Copyright [yyyy] [name of copyright owner]
  
     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.
  
  
  
  1.1                  jakarta-jetspeed/plugin/target/classes/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
<!--
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-jetspeed-plugin</id>
        <name>Maven Jetspeed Plug-in</name>
        <currentVersion>1.0-SNAPSHOT</currentVersion>
        <organization>
                <name>Apache Software Foundation</name>
                <url>http://jakarta.apache.org/</url>
                
<logo>http://jakarta.apache.org/turbine/maven/images/jakarta-logo-blue.gif</logo>
        </organization>
        <inceptionYear>2002</inceptionYear>
        <package>org.apache.jetspeed</package>
        <logo>http://jakarta.apache.org/turbine/maven/images/maven.jpg</logo>
        <description>

    Plugin for Jetspeed (http://jakarta.apache.org/jetspeed) that

    allows you to build to build a WAR for Cactus (http://jakarta.apache.org/cactus)

    testing

  </description>
        <shortDescription>Jetspeed plugin</shortDescription>
        <url/>
        <issueTrackingUrl/>
        <siteAddress>jakarta.apache.org</siteAddress>
        <siteDirectory/>
        <distributionDirectory/>
        <developers>
                <developer>
                        <name>David Eric Pugh</name>
                        <id>dep4b</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Upstate</organization>
                        <roles>
                                <role>Java Developer</role>
                        </roles>
                </developer>
                <developer>
                        <name>Mark Orciuch</name>
                        <id>morciuch</id>
                        <email>[EMAIL PROTECTED]</email>
                        <organization>Apache</organization>
                        <roles>
                                <role>Java Developer</role>
                        </roles>
                </developer>
        </developers>
        <repository>
                <connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:jakarta-jetspeed/src/plugins-build/jetspeed/</connection>
                
<url>http://cvs.apache.org/viewcvs/jakarta-jetspeed/src/plugins-build/jetspeed/</url>
        </repository>
        <build>
                <sourceDirectory>${basedir}/src/main</sourceDirectory>
                <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
                <unitTest>
                        <includes>
                                <include>**/*Test.java</include>
                        </includes>
                </unitTest>
                <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>
</project>


  
  
  1.1                  jakarta-jetspeed/plugin/target/classes/plugin.properties
  
  Index: plugin.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.
  
  # -------------------------------------------------------------------
  # Default properties for the Jetspeed Plugin
  # -------------------------------------------------------------------
  
  # The location of the plain vanilla Jetspeed war.
  maven.jetspeed.vanilla.war = ${plugin.dir}/jetspeed.war
  
  # Location where the war will be created. Defaults to
  # ${maven.build.dir}/jetspeed-cactus
  maven.jetspeed.build.dir = ${maven.build.dir}
  
  # Location where the various Merge* merge files are
  maven.jetspeed.merge.dir = ./src/conf/
  
  # Location of app-specific files to include in the .war file
  war.src = ${basedir}/webapp
  
  # Location where temporary files used for the .war file are stored
  war.stage.dir = ${basedir}/stage
  
  # Target environment (LOCAL,DEV,TEST,PROD, default NONE)
  maven.env.name = 
  
  # Comma separated list of property files to merge (default NONE). 
  # Extension assumed to be .properties.
  # Filename format when ${maven.env.name} is NOT used: 
[property.filename].properties.merge
  # Filename format when ${maven.env.name} is used: 
[property.filename]-${maven.env.name}.properties.merge
  maven.merge.properties = 
  
  # Comma separated list of environment specific registries to copy (default NONE). 
  # Filename format: local-[registry.name]-${maven.env.name}.xreg.copy
  # For example, to copy local-security-${maven.env.name}.xreg.copy to 
local-security.xreg, set it to 'security'
  maven.copy.xreg = 
  
  
  
  1.1                  jakarta-jetspeed/plugin/target/classes/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.
  
  # -------------------------------------------------------------------
  # P R O J E C T  P R O P E R T I E S
  # -------------------------------------------------------------------
  maven.xdoc.date=left
  maven.xdoc.version=${pom.currentVersion}
  maven.checkstyle.format = turbine
  
  
  
  1.1                  jakarta-jetspeed/plugin/target/classes/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>

  <!--

  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.

  -->

  <!--

    =============================================================================

      Jetspeed plugin for Maven.

    =============================================================================

  -->

  <project xmlns:j="jelly:core" xmlns:u="jelly:util">

        <!--

       ========================================================================

         Create the custom WAR from binary distribution

       ========================================================================

    -->

        <goal name="jetspeed:war" description="Create custom .war file based on 
jetspeed binary distribution">

                <j:set var="maven.war.src" value="${war.stage.dir}/webapp"/>

                <echo>[DEBUG] maven.src.dir = ${maven.src.dir}</echo>

                <echo>[DEBUG] maven.war.src = ${maven.war.src}</echo>

                <echo>[DEBUG] maven.build.dir = ${maven.build.dir}</echo>

                <echo>[DEBUG] maven.war.build.dir = ${maven.war.build.dir}</echo>

                <echo>[DEBUG] maven.dependency.classpath = 
${maven.dependency.classpath}</echo>         

                <!-- recreate target area -->

                <!--attainGoal name="war:init"/-->

                <mkdir dir="${maven.war.src}"/>

                <!-- recreate stage area -->

                <delete dir="${war.stage.dir}"/>

                <mkdir dir="${war.stage.dir}"/>

                <!-- copy distribution war to stage directory -->

                <j:forEach var="dep" items="${pom.dependencies}">

                        <j:if test="${dep.getType() == 'distribution'}">

                                <j:set var="dist.name" value="${dep.getId()}"/>

                                <j:set var="internal.war.path" 
value="${dep.getProperty('dist.native.name')}"/>

                                <j:set var="dist.dependency.zip" 
value="${maven.repo.local}/${dep.getId()}/distributions/${dep.getArtifact()}"/>

                                <echo>[DEBUG] dist.dependency.zip = 
${dist.dependency.zip}</echo>

                                <echo>[DEBUG] dist.name = ${dist.name}</echo>

                                <echo>[DEBUG] internal.war.path= 
${internal.war.path}</echo>

                                <!-- extract .war file from distribution -->

                                <unzip src="${dist.dependency.zip}" 
dest="${maven.war.src}">

                                        <!-- This only extracts the .war -->

                                        <patternset>

                                                <!--include name="**/*.war"/-->

                                                <include name="**/webapp/*.*"/>

                                        </patternset>

                                        <!-- This extracts the .war and expands it -->

                                        <!--fileset dir=".">

                                                <include name="**/*.war"/>

                                                <exclude name="**/${pom.id}.war"/>     
                                         

                                        </fileset-->

                                </unzip>

                                <move todir="${maven.war.src}">

                                        <fileset 
dir="${maven.war.src}/${internal.war.path}/webapp"/>

                                </move>

                                <!-- delete work files from distribution -->

                                <delete dir="${maven.war.src}/${internal.war.path}"/>

                                <!--delete dir="${maven.war.src}/META-INF"/>

                                <delete dir="${maven.war.src}/WEB-INF/lib"/-->

                        </j:if>

                </j:forEach>

                <!-- copy application webapp source to stage webapp -->

                <copy todir="${maven.war.src}" overwrite="true">

                        <fileset dir="${war.src}">

                                <exclude name="**/*CVS*"/>

                                <exclude name="**/*Entries*"/>

                                <exclude name="**/*Repository*"/>

                                <exclude name="**/*Tag*"/>

                        </fileset>

                </copy>

                <!-- create project .jar file -->

                <attainGoal name="java:jar"/>

                <!-- copy jar to web app directory -->

                <copy file="${maven.build.dir}/${maven.final.name}.jar" 
todir="${maven.war.src}/WEB-INF/lib"/>

                <!-- remove class files -->

                <!--delete>

                        <fileset dir="${maven.build.dir}/classes" 
includes="**/*.class"/>

                </delete-->

                <!-- set version tag -->

                <attainGoal name="jetspeed:war-version-tag"/>           

                <!--  merge any property files and copy environment specific local 
registries -->               

                <attainGoal name="jetspeed:war-config"/>                

                <!-- create project .war file -->

                <attainGoal name="war:war"/>

        </goal>

        <!--

       ========================================================================

         Embed release version tag into bottom navigation

       ========================================================================

    --> 

        <goal name="jetspeed:war-version-tag" description="Updates release version tag 
shown in the bottom navigation">

                <replace 
file="${maven.war.src}/WEB-INF/templates/vm/navigations/html/bottom.vm" 
token="(release)" value="${pom.currentVersion}"/>

        </goal>

        <!--

       ========================================================================

         Override jetspeed property files and add local registries

       ========================================================================

    --> 

        <goal name="jetspeed:war-config" description="Override jetspeed property files 
and add local registries">

                <!-- define custom task for oeverriding properties -->

                <taskdef name="props_override" 
classname="org.apache.jetspeed.util.ant.OverwritePropertiesTask">

                        <classpath>

                                <path refid="maven.dependency.classpath"/>

                        </classpath>

                </taskdef>

                <!-- set proper environment property files -->

                <echo>Targeting ${maven.env.name} environment ...</echo>

                <j:set var="props.dir" value="${maven.war.src}/WEB-INF/conf"/>

                <u:tokenize var="merge.prop.files" 
delim=",">${maven.merge.properties}</u:tokenize>

                <j:forEach items="${merge.prop.files}" var="prop.file">

                        <echo>[DEBUG] Merging ${prop.file}</echo>

                        <j:if test="${maven.env.name == null}">

                                <echo>[DEBUG] Merging ${prop.file} for 
${maven.env.name}</echo>

                                <props_override 
mergeBaseProperties="${props.dir}/${prop.file}.properties" 
mergeProperties="${props.dir}/${prop.file}-${maven.env.name}.properties.merge" 
includesDir="${props.dir}" failonerror="false"/>

                        </j:if>

                        <props_override 
mergeBaseProperties="${props.dir}/${prop.file}.properties" 
mergeProperties="${props.dir}/${prop.file}.properties.merge" 
includesDir="${props.dir}" failonerror="false"/>

                </j:forEach>

                <!-- environment specific local registries -->

                <j:if test="${maven.env.name == null}">

                        <u:tokenize var="local.xreg.files" 
delim=",">${maven.copy.env.xreg}</u:tokenize>

                        <j:forEach items="${local.xreg.files}" var="xreg.file">

                                <echo>[DEBUG] Copying local-${xreg.file} for 
${maven.env.name}</echo>

                                <copy 
file="${props.dir}/local-${xreg.file}-${maven.env.name}.xreg.copy" 
toFile="${props.dir}/local-${xreg.file}.xreg" failonerror="false"/>

                        </j:forEach>

                </j:if>

                <delete>

                        <fileset dir="${props.dir}" includes="**/*.properties.merge"/>

                        <fileset dir="${props.dir}" includes="**/local-*.xreg.copy"/>

                </delete>

        </goal>

        <!--

       ========================================================================

         Create the Jetspeed WAR

       ========================================================================

    -->

        <goal name="jetspeed:overlay" description="Overlay a vanilla Jetspeed War file 
on your existing code.">

                <!-- this seems required to setup the plugin context -->

                <attainGoal name="war:init"/>

                <j:set var="maven.jetspeed.prewar.dir" 
value="${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.build.dir')}"/>

                <available file="${maven.jetspeed.prewar.dir}/${pom.artifactId}.war" 
property="maven.jetspeed.prewar.exists"/>

                <j:choose>

                        <j:when test="${maven.jetspeed.prewar.exists}">

                                <!-- Expand the project war -->

                                <unwar 
src="${maven.jetspeed.prewar.dir}/${pom.artifactId}.war" 
dest="${maven.jetspeed.build.dir}/${pom.artifactId}"/>

                                <attainGoal name="jetspeed:webapp-update"/>

                                <!-- delete the war because it no longer reflects the 
expanded webapp -->

                                <delete 
file="${maven.jetspeed.prewar.dir}/${pom.artifactId}.war"/>

                        </j:when>

                        <j:otherwise>

                                <available 
file="${maven.jetspeed.prewar.dir}/${pom.artifactId}/WEB-INF" type="dir" 
property="maven.jetspeed.prewebapp.exists"/>

                                <j:choose>

                                        <j:when 
test="${maven.jetspeed.prewebapp.exists}">

                                                <copy 
todir="${maven.jetspeed.build.dir}/${pom.artifactId}">

                                                        <fileset 
dir="${maven.jetspeed.prewar.dir}/${pom.artifactId}"/>

                                                </copy>

                                                <attainGoal 
name="jetspeed:webapp-update"/>

                                        </j:when>

                                        <j:otherwise>

                                                <echo>

                Either a war or a webapp must exist. Please call the War plugin

                first.

              </echo>

                                        </j:otherwise>

                                </j:choose>

                        </j:otherwise>

                </j:choose>

        </goal>

        <goal name="jetspeed:webapp-update">

                <unwar src="${maven.jetspeed.vanilla.war}" 
dest="${maven.jetspeed.build.dir}/${pom.artifactId}" overwrite="true"/>

                <attainGoal name="jetspeed:merge-properties"/>

        </goal>

        <goal name="jetspeed:merge-properties" description="Merge properties into 
vanilla property files">

                <taskdef name="overwriteproperties" 
classname="org.apache.jetspeed.util.ant.OverwritePropertiesTask">

                        <classpath>

                                <path refid="maven.dependency.classpath"/>

                        </classpath>

                </taskdef>

                <echo> merge_jrp required </echo>

                <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/JetspeedResources.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeJetspeedResources.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

                <echo> merge_security required </echo>

                <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/JetspeedSecurity.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeJetspeedSecurity.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

                <echo> merge_trp required </echo>

                <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/TurbineResources.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeTurbineResources.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

                <echo> merge_torque required </echo>

                <overwriteproperties 
mergeBaseProperties="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/Torque.properties"
 mergeProperties="${maven.jetspeed.merge.dir}/MergeTorque.properties" 
includesDir="${maven.jetspeed.build.dir}/${pom.artifactId}/WEB-INF/conf/"/>

        </goal>

  </project>

  
  
  
  1.1                  jakarta-jetspeed/plugin/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!--
  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.
  -->
  <document>
  
    <properties>
      <title>Maven Jetspeed Plugin Properties</title>
      <author email="[EMAIL PROTECTED]">Eric Pugh</author>
    </properties>
  
    <body>
      <section name="Maven Jetspeed Plugin Settings">
        <table>
          <tr>
            <th>Property name</th>
            <th>Optional?</th>
            <th>Description</th>
          </tr>
          <tr>
            <td>maven.jetspeed.vanilla.war</td>
          <td>yes</td>
          <td>Location of the jetspeed.war file.  By default 
${plugin.dir}/jetspeed.war</td>
          </tr>
        </table>
      </section>
    </body>
  </document>
  
  
  
  1.1                  jakarta-jetspeed/plugin/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!--
  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 name="Maven Castor Plugin">
  
    <title>Maven Jetspeed Plugin</title>
  
    <body>
      <links>
        <item name="Maven"      href="http://jakarta.apache.org/turbine/maven/"/>
        <item name="Jetspeed"     href="http://jakarta.apache.org/jetspeed/"/>
      </links>
      <menu name="Overview">
        <item name="Goals"      href="/goals.html" />
        <item name="Properties" href="/properties.html" />
      </menu>
    </body>
  </project>
  
  
  
  1.1                  jakarta-jetspeed/plugin/xdocs/goals.xml
  
  Index: goals.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
  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.
  -->
  <document>
  
    <properties>
      <title>Maven Jetspeed Plug-in Goals</title>
      <author email="[EMAIL PROTECTED]">Eric Pugh</author>
    </properties>
  
    <body>
      <goals>
        <goal>
          <name>jetspeed:overlay</name>
          <description>
          <P>
            This goal should be used when you want to take your code, overlay over a 
plain vanilla jetspeed
          war file, and then run cactus tests against the resulting codebase.  That 
way your cactus tests do
          not have to deal with what the current state of the production jetspeed 
version.
          </P>
          <P>
          The goal takes a vanilla Jetspeed war specified in the project.properties 
          as maven.jetspeed.vanilla.war=C:/portal/src/jetspeed-upstate/portal2.war  
and expands it into a 
          working directory.  Then the project is turned into a WAR file, and expanded 
over the vanilla \
          installation in the working directory.  Lastly, the properties files are 
merged in.  The resulting
          overlayed codebase is then re WAR'ed, and the plugin places the new war in 
the orignal war location, 
          but with all the overlayed code and merged properties.
          </P>
          <P>
          This is useful when running cactus tests, as you can just run: 
          <source>
          maven war:webapp jetspeed:overlay cactus:test
          </source>
                  </P>
          </description>
        </goal>

      <goal>
        <name>jetspeed:merge-properties</name>
        <description>
          <P>
          This goal is called by jetspeed:overlay to merge in specific properties 
files into the base vanilla
          jetspeed installation.  Currently this is pretty rigidly definied which 
files are merged.
          </P>
          <P>
                  The plugin expects the files to be in 
${maven.jetspeed.merge.dir}/MergeJetspeedResources.properties, and 
                  typically the maven.jetspeed.merge.dir is in the ./src/conf 
directory of your webapp.  The files that are 
                  currently merged are:
                  <OL>
                        <LI>MergeJetspeedResources.properties</LI>
                        <LI>MergeJetspeedSecurity.properties</LI>                      
 
                        <LI>MergeTurbineResources.properties</LI>
                        <LI>MergeTorque.properties</LI>         
                  </OL>
                  These are merged into the corresponding default versions (without 
the word Merge ;-) ).
                  </P>
        </description>
      </goal>
      </goals>
   </body>
  </document>
  
  
  
  1.1                  jakarta-jetspeed/plugin/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
  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.
  -->
  <document>  <properties>    <title>Maven Jetspeed Plugin</title>    <author 
email="[EMAIL PROTECTED]">Eric Pugh</author>  </properties>  <body>    <section 
name="Maven Jetspeed Plugin">      <p>       A plugin that currently can build a 
Jetspeed War File, or take an existing WAR file
         plus custom code and produce a merged Jetspeed WAR file ready for Cactus 
testing.      </p>    </section> </body></document>
  
  
  1.1                  jakarta-jetspeed/plugin/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
  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.
  -->
  <document>
    <properties>
      <title>Changes</title>
      <author email="[EMAIL PROTECTED]">Eric Pugh</author>
    </properties>
  
    <body>
      <release version="1.0" date="2003-01-29">
        <action dev="epugh" type="add">
          Initial cut of plugin
        </action>
      </release>
    </body>
  </document>
  
  
  
  
  1.1                  
jakarta-jetspeed/plugin/target/maven-jetspeed-plugin-1.0-SNAPSHOT.jar
  
        <<Binary file>>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to