dion        2003/06/26 23:54:47

  Added:       src/plugins-build/reactor .cvsignore plugin.jelly
                        plugin.properties project.properties project.xml
               src/plugins-build/reactor/xdocs .cvsignore changes.xml
                        goals.xml index.xml navigation.xml properties.xml
  Log:
  add reactor plugin
  
  Revision  Changes    Path
  1.1                  maven/src/plugins-build/reactor/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  target
  *.log
  
  
  1.1                  maven/src/plugins-build/reactor/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project 
    xmlns:j="jelly:core"
    xmlns:maven="jelly:maven"
    xmlns:ant="jelly:ant">
  
    <goal name="reactor"
      description="Run the site goal of all subprojects"
      prereqs="reactor:site">
    </goal>
  
    <goal name="reactor:site"
      description="Run the site goal of all subprojects">
  
      <maven:reactor
        basedir="${maven.reactor.basedir}"
        includes="${maven.reactor.includes}"
        excludes="${maven.reactor.excludes}"
        postProcessing="false"
        goals="clean,site"
        ignoreFailures="${maven.reactor.ignoreFailures}"
      />
  
    </goal>
  
    <goal name="reactor:goal" description="Run a given goal on all subprojects">
        <!-- FIXME: This should be a tag somewhere else as it's common to do tag param 
checking -->
        <j:if test="${empty(goal)}">
            <ant:fail>A goal to run must be specified, e.g.
  maven -Dgoal=clean reactor:goal
            </ant:fail>
        </j:if>
        <ant:echo>Executing ${goal} on all reactored projects</ant:echo>
        <maven:reactor
          basedir="${maven.reactor.basedir}"
          includes="${maven.reactor.includes}"
          excludes="${maven.reactor.excludes}"
          postProcessing="false"
          goals="${goal}"
          ignoreFailures="${maven.reactor.ignoreFailures}"
        />
    </goal>
  
  </project>
  
  
  
  1.1                  maven/src/plugins-build/reactor/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P L U G I N  P R O P E R I E S
  # -------------------------------------------------------------------
  # Reactor plugin.
  # -------------------------------------------------------------------
  maven.reactor.basedir=${basedir}
  maven.reactor.includes=*/project.xml
  maven.reactor.excludes=
  maven.reactor.ignoreFailures=false
  
  
  1.1                  maven/src/plugins-build/reactor/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.license.licenseFile=${basedir}/../../../LICENSE.txt
  
  
  
  
  1.1                  maven/src/plugins-build/reactor/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <project>
    <extend>${basedir}/../project.xml</extend>
    <id>maven-reactor-plugin</id>
    <name>Maven Reactor Plug-in</name>
    <currentVersion>1.0-SNAPSHOT</currentVersion>
    <description>A plugin to handle the building of subprojects within 
maven</description>
    <shortDescription>Reactor Plugin for Maven</shortDescription>
    <url>http://maven.apache.org/reference/plugins/reactor/</url>
    <siteDirectory>/www/maven.apache.org/reference/plugins/reactor/</siteDirectory>
    <repository>
      <connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:maven/src/plugins-build/reactor/</connection>
      <url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/reactor/</url>
    </repository>
    <developers>
      <developer>
        <name>dIon Gillard</name>
        <id>dion</id>
        <email>[EMAIL PROTECTED]</email>
        <organization>Multitask Consulting</organization>
        <roles>
          <role>Java Developer</role>
        </roles>
      </developer>
    </developers>
  </project>
  
  
  
  1.1                  maven/src/plugins-build/reactor/xdocs/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  stylesheets
  
  
  
  1.1                  maven/src/plugins-build/reactor/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
    <properties>
      <title>Changes</title>
      <author email="[EMAIL PROTECTED]">dIon Gillard</author>
    </properties>
  
    <body>
      <release version="1.0" date="in CVS">
        <action dev="dion" type="add">
          Initial creation during 1.0-beta 10 dev phase
        </action>
      </release>
    </body>
  </document>
  
  
  
  
  1.1                  maven/src/plugins-build/reactor/xdocs/goals.xml
  
  Index: goals.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <document>
    <properties>
      <title>Maven Reactor Plug-in Goals</title>
      <author email="[EMAIL PROTECTED]">dIon Gillard</author>
    </properties>
    <body>
      <goals>
        <goal>
          <name>reactor</name>
          <description>Run the site goal of all subprojects</description>
        </goal>
        <goal>
          <name>reactor:site</name>
          <description>Run the site goal of all subprojects</description>
        </goal>
          <goal>
            <name>reactor:goal</name>
            <description>
                Run the comma separated list of goal provided by the variable 
<code>goal</code> for all subprojects
                e.g.
                <source>
                    maven -Dgoal=java:compile reactor:goal
                </source>
                or
                <source>
                    maven -Dgoal=clean,java:compile,test reactor:goal
                </source>
            </description>
          </goal>
      </goals>
    </body>
  </document>
  
  
  1.1                  maven/src/plugins-build/reactor/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <title>Maven Eclipse Plugin</title>
      <author email="[EMAIL PROTECTED]">dIon Gillard</author>
    </properties>
  
    <body>
      <section name="Maven Reactor Plugin">
        <p>
          This plug-in provides the ability to work with subprojects via the same 
interface
          as a single project
        </p>
        <p> 
          For more information on the functionality provided by this plugin,
          please see the <a href="goals.html">Goals</a> document.
        </p>
        <p>
          For more information on how to customise the functionality provided
          by this plugin, please see the <a href="properties.html">properties</a>
          document.
        </p>
      </section>
   </body>
  </document>
  
  
  
  1.1                  maven/src/plugins-build/reactor/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project name="Maven Reactor Plugin">
  
    <title>Maven Reactor Plugin</title>
  
    <body>
      <links>
        <item name="Maven"   href="http://maven.apache.org/"/>
      </links>
      <menu name="Overview">
        <item name="Goals" href="/goals.html" />
        <item name="Properties" href="/properties.html" />
      </menu>
    </body>
  </project>
  
  
  
  1.1                  maven/src/plugins-build/reactor/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <document>
    <properties>
      <title>Maven Reactor Plug-in Properties</title>
      <author email="[EMAIL PROTECTED]">dIon Gillard</author>
    </properties>
    <body>
      <section name="Maven Reactor Plug-in Settings">
        <table>
          <tr>
            <th>Property</th>
            <th>Optional?</th>
            <th>Description</th>
          </tr>
          <tr>
            <td>maven.reactor.basedir</td>
            <td>Yes</td>
            <td>
              <p>
                This is the base directory that the reactor plugin will use when 
searching for
                projects to be processed. It is also the 'current directory' for 
relative paths
              </p>
              <p>
                Default value is <code>${basedir}</code>.
              </p>
            </td>
          </tr>
          <tr>
            <td>maven.reactor.excludes</td>
            <td>Yes</td>
            <td>
              <p>
                This is the list of file specifications to be excluded when searching 
for
                projects to be processed by the reactor plugin
              </p>
              <p>Default value is the empty string.</p>
            </td>
          </tr>
          <tr>
            <td>maven.reactor.ignoreFailures</td>
            <td>Yes</td>
            <td>
              <p>
                Set this to true to allow the reactor plugin to continue
                when subprojects fail during processing.
              </p>
              <p>
                Default value is <code>false</code>. That means that if a subproject 
fails,
                other subprojects will not be processed
              </p>
            </td>
          </tr>
          <tr>
            <td>maven.reactor.includes</td>
            <td>Yes</td>
            <td>
              <p>
                This is the list of file specifications to be included when searching 
for
                projects to be processed by the reactor plugin
              </p>
              <p>
                Default value is <code>*/project.xml</code>, that is all project.xml 
files one
                directory below the base directory
              </p>
            </td>
          </tr>
        </table>
      </section>
    </body>
  </document>
  
  

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

Reply via email to