Package org.apache.maven.model
Class BuildBase
- java.lang.Object
-
- org.apache.maven.model.PluginContainer
-
- org.apache.maven.model.PluginConfiguration
-
- org.apache.maven.model.BuildBase
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Build
public class BuildBase extends PluginConfiguration implements java.io.Serializable
Generic informations for a build.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(java.lang.String string)Method addFilter.voidaddResource(Resource resource)Method addResource.voidaddTestResource(Resource resource)Method addTestResource.java.lang.StringgetDefaultGoal()Get the default goal (or phase in Maven 2) to execute when none is specified for the project.java.lang.StringgetDirectory()Get the directory where all files generated by the build are placed.java.util.List<java.lang.String>getFilters()Method getFilters.java.lang.StringgetFinalName()Get the filename (excluding the extension, and with no path information) that the produced artifact will be called.java.util.List<Resource>getResources()Method getResources.java.util.List<Resource>getTestResources()Method getTestResources.voidremoveFilter(java.lang.String string)Method removeFilter.voidremoveResource(Resource resource)Method removeResource.voidremoveTestResource(Resource resource)Method removeTestResource.voidsetDefaultGoal(java.lang.String defaultGoal)Set the default goal (or phase in Maven 2) to execute when none is specified for the project.voidsetDirectory(java.lang.String directory)Set the directory where all files generated by the build are placed.voidsetFilters(java.util.List<java.lang.String> filters)Set the list of filter properties files that are used when filtering is enabled.voidsetFinalName(java.lang.String finalName)Set the filename (excluding the extension, and with no path information) that the produced artifact will be called.voidsetResources(java.util.List<Resource> resources)Set this element describes all of the classpath resources such as properties files associated with a project.voidsetTestResources(java.util.List<Resource> 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
-
-
-
-
Method Detail
-
addFilter
public void addFilter(java.lang.String string)
Method addFilter.- Parameters:
string- a string object.
-
addResource
public void addResource(Resource resource)
Method addResource.- Parameters:
resource- a resource object.
-
addTestResource
public void addTestResource(Resource resource)
Method addTestResource.- Parameters:
resource- a resource object.
-
getDefaultGoal
public java.lang.String getDefaultGoal()
Get the default goal (or phase in Maven 2) to execute when none is specified for the project.- Returns:
- String
-
getDirectory
public java.lang.String getDirectory()
Get the directory where all files generated by the build are placed.- Returns:
- String
-
getFilters
public java.util.List<java.lang.String> getFilters()
Method getFilters.- Returns:
- List
-
getFinalName
public java.lang.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 java.util.List<Resource> getResources()
Method getResources.- Returns:
- List
-
getTestResources
public java.util.List<Resource> getTestResources()
Method getTestResources.- Returns:
- List
-
removeFilter
public void removeFilter(java.lang.String string)
Method removeFilter.- Parameters:
string- a string object.
-
removeResource
public void removeResource(Resource resource)
Method removeResource.- Parameters:
resource- a resource object.
-
removeTestResource
public void removeTestResource(Resource resource)
Method removeTestResource.- Parameters:
resource- a resource object.
-
setDefaultGoal
public void setDefaultGoal(java.lang.String defaultGoal)
Set the default goal (or phase in Maven 2) to execute when none is specified for the project.- Parameters:
defaultGoal- a defaultGoal object.
-
setDirectory
public void setDirectory(java.lang.String directory)
Set the directory where all files generated by the build are placed.- Parameters:
directory- a directory object.
-
setFilters
public void setFilters(java.util.List<java.lang.String> filters)
Set the list of filter properties files that are used when filtering is enabled.- Parameters:
filters- a filters object.
-
setFinalName
public void setFinalName(java.lang.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- a finalName object.
-
setResources
public void setResources(java.util.List<Resource> 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- a resources object.
-
setTestResources
public void setTestResources(java.util.List<Resource> testResources)
Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.- Parameters:
testResources- a testResources object.
-
-