Class Build
java.lang.Object
org.apache.maven.model.PluginContainer
org.apache.maven.model.PluginConfiguration
org.apache.maven.model.BuildBase
org.apache.maven.model.Build
- All Implemented Interfaces:
Serializable
The
<build> element contains
informations required to build the project.- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(Extension extension) Method addExtension.Method getExtensions.Get the directory where compiled application classes are placed.Get this element specifies a directory containing the script sources of the project.Get this element specifies a directory containing the source of the project.Get the directory where compiled test classes are placed.Get this element specifies a directory containing the unit test source of the project.voidremoveExtension(Extension extension) Method removeExtension.voidsetExtensions(List<Extension> extensions) Set a set of build extensions to use from this project.voidsetOutputDirectory(String outputDirectory) Set the directory where compiled application classes are placed.voidsetScriptSourceDirectory(String scriptSourceDirectory) Set this element specifies a directory containing the script sources of the project.voidsetSourceDirectory(String sourceDirectory) Set this element specifies a directory containing the source of the project.voidsetTestOutputDirectory(String testOutputDirectory) Set the directory where compiled test classes are placed.voidsetTestSourceDirectory(String testSourceDirectory) Set this element specifies a directory containing the unit test source of the project.Methods inherited from class BuildBase
addFilter, addResource, addTestResource, getDefaultGoal, getDirectory, getFilters, getFinalName, getResources, getTestResources, removeFilter, removeResource, removeTestResource, setDefaultGoal, setDirectory, setFilters, setFinalName, setResources, setTestResourcesMethods inherited from class PluginConfiguration
getPluginManagement, setPluginManagementMethods inherited from class PluginContainer
addPlugin, flushPluginMap, getPlugins, getPluginsAsMap, removePlugin, setPlugins
-
Constructor Details
-
Build
public Build()
-
-
Method Details
-
addExtension
Method addExtension.- Parameters:
extension- a extension object.
-
getExtensions
-
getOutputDirectory
Get the directory where compiled application classes are placed.- Returns:
- String
-
getScriptSourceDirectory
Get this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).- Returns:
- String
-
getSourceDirectory
Get this element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.- Returns:
- String
-
getTestOutputDirectory
Get the directory where compiled test classes are placed.- Returns:
- String
-
getTestSourceDirectory
Get this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.- Returns:
- String
-
removeExtension
Method removeExtension.- Parameters:
extension- a extension object.
-
setExtensions
-
setOutputDirectory
Set the directory where compiled application classes are placed.- Parameters:
outputDirectory- a outputDirectory object.
-
setScriptSourceDirectory
Set this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).- Parameters:
scriptSourceDirectory- a scriptSourceDirectory object.
-
setSourceDirectory
Set this element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.- Parameters:
sourceDirectory- a sourceDirectory object.
-
setTestOutputDirectory
Set the directory where compiled test classes are placed.- Parameters:
testOutputDirectory- a testOutputDirectory object.
-
setTestSourceDirectory
Set this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.- Parameters:
testSourceDirectory- a testSourceDirectory object.
-