portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/plugins-build/jetspeed LICENSE.txt plugin.jelly plugin.properties project.properties project.xml
Date Tue, 11 Feb 2003 23:32:16 GMT
taylor      2003/02/11 15:32:16

  Added:       src/plugins-build/jetspeed LICENSE.txt plugin.jelly
                        plugin.properties project.properties project.xml
  Log:
  Jetspeed Plugin for Maven, contributed by Eric Pugh
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/src/plugins-build/jetspeed/LICENSE.txt
  
  Index: LICENSE.txt
  ===================================================================
  
  
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Maven" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Maven", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  
  
  
  1.1                  jakarta-jetspeed/src/plugins-build/jetspeed/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
    =============================================================================
      Jetspeed plugin for Maven.
    =============================================================================
  -->
  <project xmlns:j="jelly:core"
    >
    <!--
       ========================================================================
         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/src/plugins-build/jetspeed/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # 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/
  
  
  1.1                  jakarta-jetspeed/src/plugins-build/jetspeed/project.properties
  
  Index: project.properties
  ===================================================================
  # -------------------------------------------------------------------
  # 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/src/plugins-build/jetspeed/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <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></url>
    <issueTrackingUrl></issueTrackingUrl>
    <siteAddress>jakarta.apache.org</siteAddress>
    <siteDirectory></siteDirectory>
    <distributionDirectory></distributionDirectory>
  
    <developers>
     <developer>
        <name>David Eric Pugh</name>
        <id>dep4b</id>
        <email>epugh@upstate.com</email>
        <organization>Upstate</organization>
        <roles>
          <role>Java Developer</role>
        </roles>
      </developer>
    </developers>
  
   <repository>
      <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/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>
  
  
  
  

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


Mime
View raw message