Class BuildBase
java.lang.Object
org.apache.maven.model.PluginContainer
org.apache.maven.model.PluginConfiguration
org.apache.maven.model.BuildBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Build
Generic informations for a build.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addFilter.voidaddResource(Resource resource) Method addResource.voidaddTestResource(Resource resource) Method addTestResource.Get the default goal (or phase in Maven 2) to execute when none is specified for the project.Get the directory where all files generated by the build are placed.Method getFilters.Get the filename (excluding the extension, and with no path information) that the produced artifact will be called.Method getResources.Method getTestResources.voidremoveFilter(String string) Method removeFilter.voidremoveResource(Resource resource) Method removeResource.voidremoveTestResource(Resource resource) Method removeTestResource.voidsetDefaultGoal(String defaultGoal) Set the default goal (or phase in Maven 2) to execute when none is specified for the project.voidsetDirectory(String directory) Set the directory where all files generated by the build are placed.voidsetFilters(List<String> filters) Set the list of filter properties files that are used when filtering is enabled.voidsetFinalName(String finalName) Set the filename (excluding the extension, and with no path information) that the produced artifact will be called.voidsetResources(List<Resource> resources) Set this element describes all of the classpath resources such as properties files associated with a project.voidsetTestResources(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 PluginConfiguration
getPluginManagement, setPluginManagementMethods inherited from class PluginContainer
addPlugin, flushPluginMap, getPlugins, getPluginsAsMap, removePlugin, setPlugins
-
Constructor Details
-
BuildBase
public BuildBase()
-
-
Method Details
-
addFilter
-
addResource
Method addResource.- Parameters:
resource- a resource object.
-
addTestResource
Method addTestResource.- Parameters:
resource- a resource object.
-
getDefaultGoal
Get the default goal (or phase in Maven 2) to execute when none is specified for the project.- Returns:
- String
-
getDirectory
Get the directory where all files generated by the build are placed.- Returns:
- String
-
getFilters
-
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
-
getTestResources
-
removeFilter
-
removeResource
Method removeResource.- Parameters:
resource- a resource object.
-
removeTestResource
Method removeTestResource.- Parameters:
resource- a resource object.
-
setDefaultGoal
Set the default goal (or phase in Maven 2) to execute when none is specified for the project.- Parameters:
defaultGoal- a defaultGoal object.
-
setDirectory
Set the directory where all files generated by the build are placed.- Parameters:
directory- a directory object.
-
setFilters
-
setFinalName
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
-
setTestResources
-