Package org.apache.maven.model
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,- Cloneable,- InputLocationTracker
The 
<build> element contains
 informations required to build the project.
         Default values are defined in Super POM.- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExtension(Extension extension) Method addExtension.clone()Method clone.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.toString()Methods inherited from class org.apache.maven.model.BuildBaseaddFilter, addResource, addTestResource, getDefaultGoal, getDirectory, getFilters, getFinalName, getResources, getTestResources, removeFilter, removeResource, removeTestResource, setDefaultGoal, setDirectory, setFilters, setFinalName, setResources, setTestResourcesMethods inherited from class org.apache.maven.model.PluginConfigurationgetPluginManagement, setPluginManagementMethods inherited from class org.apache.maven.model.PluginContaineraddPlugin, flushPluginMap, getLocation, getPlugins, getPluginsAsMap, removePlugin, setLocation, setOtherLocation, setPlugins
- 
Constructor Details- 
Buildpublic Build()
 
- 
- 
Method Details- 
addExtensionMethod addExtension.- Parameters:
- extension- a extension object.
 
- 
cloneMethod clone.
- 
getExtensionsMethod getExtensions.- Returns:
- List
 
- 
getOutputDirectoryGet the directory where compiled application classes are placed. The default value istarget/classes.- Returns:
- String
 
- 
getScriptSourceDirectoryGet 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). The default value issrc/main/scripts.- Returns:
- String
 
- 
getSourceDirectoryGet this element specifies a directory containing the source of the project. The generated build system will compile the sources from this directory when the project is built. The path given is relative to the project descriptor. The default value issrc/main/java.- Returns:
- String
 
- 
getTestOutputDirectoryGet the directory where compiled test classes are placed. The default value istarget/test-classes.- Returns:
- String
 
- 
getTestSourceDirectoryGet 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. The default value issrc/test/java.- Returns:
- String
 
- 
removeExtensionMethod removeExtension.- Parameters:
- extension- a extension object.
 
- 
setExtensionsSet a set of build extensions to use from this project.- Parameters:
- extensions- a extensions object.
 
- 
setOutputDirectorySet the directory where compiled application classes are placed. The default value istarget/classes.- Parameters:
- outputDirectory- a outputDirectory object.
 
- 
setScriptSourceDirectorySet 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). The default value issrc/main/scripts.- Parameters:
- scriptSourceDirectory- a scriptSourceDirectory object.
 
- 
setSourceDirectorySet this element specifies a directory containing the source of the project. The generated build system will compile the sources from this directory when the project is built. The path given is relative to the project descriptor. The default value issrc/main/java.- Parameters:
- sourceDirectory- a sourceDirectory object.
 
- 
setTestOutputDirectorySet the directory where compiled test classes are placed. The default value istarget/test-classes.- Parameters:
- testOutputDirectory- a testOutputDirectory object.
 
- 
setTestSourceDirectorySet 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. The default value issrc/test/java.- Parameters:
- testSourceDirectory- a testSourceDirectory object.
 
- 
toString
 
-