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:
Serializable
,Cloneable
,InputLocationTracker
- Direct Known Subclasses:
Build
public class BuildBase extends PluginConfiguration implements Serializable, Cloneable
Build configuration in a profile.- 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 void
addFilter(String string)
Method addFilter.void
addResource(Resource resource)
Method addResource.void
addTestResource(Resource resource)
Method addTestResource.BuildBase
clone()
Method clone.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<String>
getFilters()
Method getFilters.String
getFinalName()
Get the filename (excluding the extension, and with no path information) that the produced artifact will be called.List<Resource>
getResources()
Method getResources.List<Resource>
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<String> 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
setResources(List<Resource> resources)
Set this element describes all of the classpath resources such as properties files associated with a project.void
setTestResources(List<Resource> testResources)
Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.String
toString()
-
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
-
-
-
-
Method Detail
-
addFilter
public void addFilter(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.
-
clone
public BuildBase clone()
Method clone.- Overrides:
clone
in classPluginConfiguration
- Returns:
- BuildBase
-
getDefaultGoal
public 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 String getDirectory()
Get the directory where all files generated by the build are placed. The default value istarget
.- Returns:
- String
-
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
-
removeFilter
public void removeFilter(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(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
- a defaultGoal object.
-
setDirectory
public void setDirectory(String directory)
Set the directory where all files generated by the build are placed. The default value istarget
.- Parameters:
directory
- a directory object.
-
setFilters
public void setFilters(List<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(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(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
- a resources object.
-
setTestResources
public void setTestResources(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
- a testResources object.
-
toString
public String toString()
- Overrides:
toString
in classPluginConfiguration
- See Also:
Object.toString()
-
-