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
,java.lang.Cloneable
,InputLocationTracker
- Direct Known Subclasses:
Build
public class BuildBase extends PluginConfiguration implements java.io.Serializable, java.lang.Cloneable
Generic informations for a build.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
defaultGoal
The default goal (or phase in Maven 2) to execute when none is specified for the project.private java.lang.String
directory
The directory where all files generated by the build are placed.private java.util.List<java.lang.String>
filters
Field filters.private java.lang.String
finalName
The filename (excluding the extension, and with no path information) that the produced artifact will be called.private java.util.List<Resource>
resources
Field resources.private java.util.List<Resource>
testResources
Field testResources.-
Fields inherited from class org.apache.maven.model.PluginContainer
pluginMap
-
-
Constructor Summary
Constructors Constructor Description BuildBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(java.lang.String string)
Method addFilter.void
addResource(Resource resource)
Method addResource.void
addTestResource(Resource resource)
Method addTestResource.BuildBase
clone()
Method clone.java.lang.String
getDefaultGoal()
Get the default goal (or phase in Maven 2) to execute when none is specified for the project.java.lang.String
getDirectory()
Get the directory where all files generated by the build are placed.java.util.List<java.lang.String>
getFilters()
Method getFilters.java.lang.String
getFinalName()
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.void
removeFilter(java.lang.String string)
Method removeFilter.void
removeResource(Resource resource)
Method removeResource.void
removeTestResource(Resource resource)
Method removeTestResource.void
setDefaultGoal(java.lang.String defaultGoal)
Set the default goal (or phase in Maven 2) to execute when none is specified for the project.void
setDirectory(java.lang.String directory)
Set the directory where all files generated by the build are placed.void
setFilters(java.util.List<java.lang.String> filters)
Set the list of filter properties files that are used when filtering is enabled.void
setFinalName(java.lang.String finalName)
Set the filename (excluding the extension, and with no path information) that the produced artifact will be called.void
setResources(java.util.List<Resource> resources)
Set this element describes all of the classpath resources such as properties files associated with a project.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.-
Methods inherited from class org.apache.maven.model.PluginConfiguration
getPluginManagement, setPluginManagement
-
Methods inherited from class org.apache.maven.model.PluginContainer
addPlugin, flushPluginMap, getLocation, getPlugins, getPluginsAsMap, removePlugin, setLocation, setOtherLocation, setPlugins
-
-
-
-
Field Detail
-
defaultGoal
private java.lang.String defaultGoal
The default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.
-
resources
private java.util.List<Resource> resources
Field resources.
-
testResources
private java.util.List<Resource> testResources
Field testResources.
-
directory
private java.lang.String directory
The directory where all files generated by the build are placed. The default value istarget
.
-
finalName
private java.lang.String finalName
The filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}
.
-
filters
private java.util.List<java.lang.String> filters
Field filters.
-
-
Method Detail
-
addFilter
public void addFilter(java.lang.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
-
-
clone
public BuildBase clone()
Method clone.- Overrides:
clone
in classPluginConfiguration
- Returns:
- BuildBase
-
getDefaultGoal
public java.lang.String getDefaultGoal()
Get the default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.- Returns:
- String
-
getDirectory
public java.lang.String getDirectory()
Get the directory where all files generated by the build are placed. The default value istarget
.- 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
-
-
removeResource
public void removeResource(Resource resource)
Method removeResource.- Parameters:
resource
-
-
removeTestResource
public void removeTestResource(Resource resource)
Method removeTestResource.- Parameters:
resource
-
-
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. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.- Parameters:
defaultGoal
-
-
setDirectory
public void setDirectory(java.lang.String directory)
Set the directory where all files generated by the build are placed. The default value istarget
.- Parameters:
directory
-
-
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
-
-
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
-
-
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. The default value issrc/main/resources
.- Parameters:
resources
-
-
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. The default value issrc/test/resources
.- Parameters:
testResources
-
-
-