org.apache.maven.project
Class Build

java.lang.Object
  extended byorg.apache.maven.project.BaseObject
      extended byorg.apache.maven.project.Build

public class Build
extends BaseObject

Version:
$Id: Build.java,v 1.24.4.9 2004/05/13 10:15:54 brett Exp $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.project.BaseObject
id
 
Constructor Summary
Build()
          Constructor for the Build object
 
Method Summary
 void addResource(Resource resource)
          Add a test resource.
 void addSourceModification(SourceModification sourceModification)
          Add source modification.
 java.lang.String getAspectSourceDirectory()
          Gets the directory that Aspect/J source is stored in
 java.lang.String getIntegrationUnitTestSourceDirectory()
          Get the integration unit test source directory.
 java.lang.String getNagEmailAddress()
          Get the nag email address.
 java.util.List getResources()
          Gets the resources.
 java.lang.String getSourceDirectory()
          Gets the sourceDirectories attribute of the Build object
 java.util.List getSourceModifications()
          Get the source modifications.
 UnitTest getUnitTest()
          Retrieve the unit test patterns.
 java.lang.String getUnitTestSourceDirectory()
          Get the unit test source directory.
 void resolveDirectories(java.io.File basedir)
          Resolve relative directories against a base directory.
 void setAspectSourceDirectory(java.lang.String aspectSourceDirectory)
          Adds a feature to the AspectSourceDirectory attribute of the Build object
 void setIntegrationUnitTestSourceDirectory(java.lang.String utDirectory)
          Set the integration unit test source direcotry.
 void setNagEmailAddress(java.lang.String nagEmailAddress)
          Set the nag email address, which is used for automated build failures.
 void setResources(java.util.List resources)
          Set the resources.
 void setSourceDirectory(java.lang.String sourceDirectory)
          Adds a feature to the SourceDirectory attribute of the Build object
 void setSourceModification(java.util.List sourceModifications)
          Set the source modifications.
 void setUnitTest(UnitTest unitTest)
          Add a set of unit test patterns.
 void setUnitTestSourceDirectory(java.lang.String utDirectory)
          Set the unit test source direcotry.
 java.lang.String toString()
          Return a string suitable for display/debugging
 
Methods inherited from class org.apache.maven.project.BaseObject
addProperty, equals, getId, getName, getProperties, getProperty, hashCode, isValid, resolvedProperties, setId, setName, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Build

public Build()
Constructor for the Build object

Method Detail

getIntegrationUnitTestSourceDirectory

public java.lang.String getIntegrationUnitTestSourceDirectory()
Get the integration unit test source directory.

Returns:
the directory for integration unit test java source code

setIntegrationUnitTestSourceDirectory

public void setIntegrationUnitTestSourceDirectory(java.lang.String utDirectory)
Set the integration unit test source direcotry.

Parameters:
utDirectory - the directory for integration unit test java source code

getUnitTestSourceDirectory

public java.lang.String getUnitTestSourceDirectory()
Get the unit test source directory.

Returns:
the directory for unit test java source code

setUnitTestSourceDirectory

public void setUnitTestSourceDirectory(java.lang.String utDirectory)
Set the unit test source direcotry.

Parameters:
utDirectory - the directory for unit test java source code

addSourceModification

public void addSourceModification(SourceModification sourceModification)
Add source modification.

Parameters:
sourceModification - Add a single source modification.

setSourceModification

public void setSourceModification(java.util.List sourceModifications)
Set the source modifications.

Parameters:
sourceModifications - Source modification.

getSourceModifications

public java.util.List getSourceModifications()
Get the source modifications.

Returns:
Source modifications.

setSourceDirectory

public void setSourceDirectory(java.lang.String sourceDirectory)
Adds a feature to the SourceDirectory attribute of the Build object

Parameters:
sourceDirectory - the directory for java source code

getSourceDirectory

public java.lang.String getSourceDirectory()
Gets the sourceDirectories attribute of the Build object

Returns:
the directory for java source code

setAspectSourceDirectory

public void setAspectSourceDirectory(java.lang.String aspectSourceDirectory)
Adds a feature to the AspectSourceDirectory attribute of the Build object

Parameters:
aspectSourceDirectory - the directory for Aspect/J source code

getAspectSourceDirectory

public java.lang.String getAspectSourceDirectory()
Gets the directory that Aspect/J source is stored in

Returns:
the aspectSourceDirectory attribute

setNagEmailAddress

public void setNagEmailAddress(java.lang.String nagEmailAddress)
Set the nag email address, which is used for automated build failures.

Parameters:
nagEmailAddress - the new value of the nag email address

getNagEmailAddress

public java.lang.String getNagEmailAddress()
Get the nag email address.

Returns:
the email address to send automatic build failures to

setUnitTest

public void setUnitTest(UnitTest unitTest)
Add a set of unit test patterns.

Parameters:
unitTest - Unit test patterns.

getUnitTest

public UnitTest getUnitTest()
Retrieve the unit test patterns.

Returns:
The unit test patterns.

addResource

public void addResource(Resource resource)
Add a test resource.

Parameters:
resource - Add a test resource.

setResources

public void setResources(java.util.List resources)
Set the resources.

Parameters:
resources - Test resources.

getResources

public java.util.List getResources()
Gets the resources.

Returns:
Resources patterns for including or excluding arbitrary resources.

toString

public java.lang.String toString()
Description copied from class: BaseObject
Return a string suitable for display/debugging

Overrides:
toString in class BaseObject
Returns:
a string for debug purposes
See Also:
Object.toString()

resolveDirectories

public void resolveDirectories(java.io.File basedir)
                        throws java.io.IOException
Resolve relative directories against a base directory.

Parameters:
basedir - the base directory
Throws:
java.io.IOException - file resolution error


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.