jtaylor     02/05/01 07:59:13

  Modified:    .        project.xml
               src/java/org/apache/maven/project Build.java
               src/templates/build build-gump.xml
  Log:
  Added support for associating a 'nag email address' with a given build.
  
  Revision  Changes    Path
  1.71      +2 -0      jakarta-turbine-maven/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/project.xml,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- project.xml       30 Apr 2002 15:31:02 -0000      1.70
  +++ project.xml       1 May 2002 14:59:13 -0000       1.71
  @@ -380,6 +380,8 @@
   
     <build>
   
  +    <nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
  +
       <sourceDirectories>
         <sourceDirectory>src/java</sourceDirectory>
       </sourceDirectories>
  
  
  
  1.6       +24 -1     
jakarta-turbine-maven/src/java/org/apache/maven/project/Build.java
  
  Index: Build.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Build.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Build.java        6 Apr 2002 16:06:13 -0000       1.5
  +++ Build.java        1 May 2002 14:59:13 -0000       1.6
  @@ -59,7 +59,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
  - * @version $Id: Build.java,v 1.5 2002/04/06 16:06:13 jvanzyl Exp $
  + * @version $Id: Build.java,v 1.6 2002/05/01 14:59:13 jtaylor Exp $
    */
   public class Build
        extends BaseObject
  @@ -111,6 +111,13 @@
       private String integrationUnitTestSourceDirectory;
   
       /**
  +     * Email address to which build related messages should be sent (for use
  +     * by automated build tools, for example those that provide continuous
  +     * integration).
  +     */
  +    private String nagEmailAddress;
  +
  +    /**
        * Constructor for the Build object
        */
       public Build()
  @@ -249,5 +256,21 @@
       public List getJars()
       {
           return jars;
  +    }
  +
  +    /**
  +     * Set the nag email address.
  +     */
  +    public void setNagEmailAddress( String nagEmailAddress )
  +    {
  +        this.nagEmailAddress = nagEmailAddress;
  +    }
  +
  +    /**
  +     * Get the nag email address.
  +     */
  +    public String getNagEmailAddress()
  +    {
  +        return nagEmailAddress;
       }
   }
  
  
  
  1.2       +6 -0      jakarta-turbine-maven/src/templates/build/build-gump.xml
  
  Index: build-gump.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build-gump.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build-gump.xml    2 Apr 2002 13:10:24 -0000       1.1
  +++ build-gump.xml    1 May 2002 14:59:13 -0000       1.2
  @@ -34,5 +34,11 @@
       />
   
     </target>
  +
  +#if ( $project.build.nagEmailAddress )
  +  
  +  <nag from="$project.build.nagEmailAddress" to="$project.build.nagEmailAddress"/>
  +
  +#end
     
   </project>
  
  
  


Reply via email to