You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/06 07:19:02 UTC

cvs commit: jakarta-turbine-maven/src/plugins-build reactor.xml

jvanzyl     2003/01/05 22:19:02

  Added:       src/plugins-build reactor.xml
  Log:
  o New reactor.xml file that is shared by each of the projects in the
    plugin build.
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-maven/src/plugins-build/reactor.xml
  
  Index: reactor.xml
  ===================================================================
  <!-- ================================================================== -->
  <!-- R E A C T O R  X M L                                               -->
  <!-- ================================================================== -->
  <!-- This file is accessible to all plugins being run in the reactor.   -->
  <!-- that processes the plugins.                                        -->
  <!-- ================================================================== -->
  
  <project 
    default="plugin"
    xmlns:j="jelly:core"
    xmlns:m="maven">
  
    <!--
     |
     | Build the plugin.
     |
     -->
    <goal
      name="plugin">
      
      <j:if test="${sourcesPresent == 'true'}">
        <attainGoal name="java:compile"/>
        <attainGoal name="test:test"/>
      </j:if>
      
      <property name="assemblyDir" value="target/assemblyDir"/>
      
      <mkdir dir="${assemblyDir}"/>
      
      <copy todir="${assemblyDir}">
        <fileset dir=".">
          <exclude name="target/**"/>
          <exclude name="src/**"/>
          <exclude name="maven.xml"/>
          <exclude name="maven.log"/>
        </fileset>
      </copy>
  
      <j:if test="${sourcesPresent == 'true'}">
        <copy todir="${assemblyDir}">
          <fileset dir="target/classes"/>
        </copy>
      </j:if>
  
      <jar
        jarfile="${maven.build.dir}/${maven.final.name}.jar">
        <fileset dir="${assemblyDir}"/>
      </jar>
  
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.repo.local}/maven/jars"
      />
  
    </goal>
    
    <!--
     |
     | Install the plugin.
     |
     -->
    <goal 
      name="plugin:install"
      prereqs="plugin"
      description="Install the plugin in Maven's plugins dir">
  
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.home}/plugins"
      />
  
    </goal>
  
    <!--
     |
     | Deploy the plugin.
     |
     -->
    <goal 
      name="plugin:deploy"
      prereqs="plugin"
      description="Install an unpacked version of the plugin">
  
      <mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
      
      <unzip 
        src="${maven.build.dir}/${maven.final.name}.jar" 
        dest="${maven.home}/plugins/${maven.final.name}"
      />
  
    </goal>
  
  </project>