org.apache.maven.model
Class BuildBase

java.lang.Object
  extended by org.apache.maven.model.PluginContainer
      extended by org.apache.maven.model.PluginConfiguration
          extended by org.apache.maven.model.BuildBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Build

public class BuildBase
extends PluginConfiguration
implements Serializable

Generic informations for a build.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
BuildBase()
           
 
Method Summary
 void addFilter(String string)
          Method addFilter.
 void addResource(Resource resource)
          Method addResource.
 void addTestResource(Resource resource)
          Method addTestResource.
 String getDefaultGoal()
          Get the default goal (or phase in Maven 2) to execute when none is specified for the project.
 String getDirectory()
          Get the directory where all files generated by the build are placed.
 List getFilters()
          Method getFilters.
 String getFinalName()
          Get The filename (excluding the extension, and with no path information) that the produced artifact will be called.
 String getModelEncoding()
           
 List getResources()
          Method getResources.
 List getTestResources()
          Method getTestResources.
 void removeFilter(String string)
          Method removeFilter.
 void removeResource(Resource resource)
          Method removeResource.
 void removeTestResource(Resource resource)
          Method removeTestResource.
 void setDefaultGoal(String defaultGoal)
          Set the default goal (or phase in Maven 2) to execute when none is specified for the project.
 void setDirectory(String directory)
          Set the directory where all files generated by the build are placed.
 void setFilters(List filters)
          Set the list of filter properties files that are used when filtering is enabled.
 void setFinalName(String finalName)
          Set The filename (excluding the extension, and with no path information) that the produced artifact will be called.
 void setModelEncoding(String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setResources(List resources)
          Set this element describes all of the classpath resources such as properties files associated with a project.
 void setTestResources(List testResources)
          Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.
 
Methods inherited from class org.apache.maven.model.PluginConfiguration
getPluginManagement, setPluginManagement
 
Methods inherited from class org.apache.maven.model.PluginContainer
addPlugin, flushPluginMap, getPlugins, getPluginsAsMap, removePlugin, setPlugins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildBase

public BuildBase()
Method Detail

addFilter

public void addFilter(String string)
Method addFilter.

Parameters:
string -

addResource

public void addResource(Resource resource)
Method addResource.

Parameters:
resource -

addTestResource

public void addTestResource(Resource resource)
Method addTestResource.

Parameters:
resource -

getDefaultGoal

public String getDefaultGoal()
Get the default goal (or phase in Maven 2) to execute when none is specified for the project.

Returns:
String

getDirectory

public String getDirectory()
Get the directory where all files generated by the build are placed.

Returns:
String

getFilters

public List getFilters()
Method getFilters.

Returns:
java.util.List

getFinalName

public String getFinalName()
Get The filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is ${artifactId}-${version}.

Returns:
String

getResources

public List getResources()
Method getResources.

Returns:
java.util.List

getTestResources

public List getTestResources()
Method getTestResources.

Returns:
java.util.List

removeFilter

public void removeFilter(String string)
Method removeFilter.

Parameters:
string -

removeResource

public void removeResource(Resource resource)
Method removeResource.

Parameters:
resource -

removeTestResource

public void removeTestResource(Resource resource)
Method removeTestResource.

Parameters:
resource -

setDefaultGoal

public void setDefaultGoal(String defaultGoal)
Set the default goal (or phase in Maven 2) to execute when none is specified for the project.

Parameters:
defaultGoal -

setDirectory

public void setDirectory(String directory)
Set the directory where all files generated by the build are placed.

Parameters:
directory -

setFilters

public void setFilters(List filters)
Set the list of filter properties files that are used when filtering is enabled.

Parameters:
filters -

setFinalName

public void setFinalName(String finalName)
Set The filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is ${artifactId}-${version}.

Parameters:
finalName -

setResources

public void setResources(List resources)
Set this element describes all of the classpath resources such as properties files associated with a project. These resources are often included in the final package.

Parameters:
resources -

setTestResources

public void setTestResources(List testResources)
Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.

Parameters:
testResources -

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set an encoding used for reading/writing the model.

Overrides:
setModelEncoding in class PluginConfiguration
Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public String getModelEncoding()
Overrides:
getModelEncoding in class PluginConfiguration
Returns:
the current encoding used when reading/writing this model.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.