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:
java.io.Serializable
,java.lang.Cloneable
,InputLocationTracker
public class Build extends BuildBase implements java.io.Serializable, java.lang.Cloneable
The<build>
element contains informations required to build the project. Default values are defined in Super POM.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Extension>
extensions
Field extensions.private java.lang.String
outputDirectory
The directory where compiled application classes are placed.private java.lang.String
scriptSourceDirectory
This element specifies a directory containing the script sources of the project.private java.lang.String
sourceDirectory
This element specifies a directory containing the source of the project.private java.lang.String
testOutputDirectory
The directory where compiled test classes are placed.private java.lang.String
testSourceDirectory
This element specifies a directory containing the unit test source of the project.-
Fields inherited from class org.apache.maven.model.PluginContainer
pluginMap
-
-
Constructor Summary
Constructors Constructor Description Build()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtension(Extension extension)
Method addExtension.Build
clone()
Method clone.java.util.List<Extension>
getExtensions()
Method getExtensions.java.lang.String
getOutputDirectory()
Get the directory where compiled application classes are placed.java.lang.String
getScriptSourceDirectory()
Get this element specifies a directory containing the script sources of the project.java.lang.String
getSourceDirectory()
Get this element specifies a directory containing the source of the project.java.lang.String
getTestOutputDirectory()
Get the directory where compiled test classes are placed.java.lang.String
getTestSourceDirectory()
Get this element specifies a directory containing the unit test source of the project.void
removeExtension(Extension extension)
Method removeExtension.void
setExtensions(java.util.List<Extension> extensions)
Set a set of build extensions to use from this project.void
setOutputDirectory(java.lang.String outputDirectory)
Set the directory where compiled application classes are placed.void
setScriptSourceDirectory(java.lang.String scriptSourceDirectory)
Set this element specifies a directory containing the script sources of the project.void
setSourceDirectory(java.lang.String sourceDirectory)
Set this element specifies a directory containing the source of the project.void
setTestOutputDirectory(java.lang.String testOutputDirectory)
Set the directory where compiled test classes are placed.void
setTestSourceDirectory(java.lang.String testSourceDirectory)
Set this element specifies a directory containing the unit test source of the project.-
Methods inherited from class org.apache.maven.model.BuildBase
addFilter, addResource, addTestResource, getDefaultGoal, getDirectory, getFilters, getFinalName, getResources, getTestResources, removeFilter, removeResource, removeTestResource, setDefaultGoal, setDirectory, setFilters, setFinalName, setResources, setTestResources
-
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
-
sourceDirectory
private java.lang.String sourceDirectory
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
.
-
scriptSourceDirectory
private java.lang.String scriptSourceDirectory
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
.
-
testSourceDirectory
private java.lang.String testSourceDirectory
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
.
-
outputDirectory
private java.lang.String outputDirectory
The directory where compiled application classes are placed. The default value istarget/classes
.
-
testOutputDirectory
private java.lang.String testOutputDirectory
The directory where compiled test classes are placed. The default value istarget/test-classes
.
-
extensions
private java.util.List<Extension> extensions
Field extensions.
-
-
Method Detail
-
addExtension
public void addExtension(Extension extension)
Method addExtension.- Parameters:
extension
-
-
getExtensions
public java.util.List<Extension> getExtensions()
Method getExtensions.- Returns:
- List
-
getOutputDirectory
public java.lang.String getOutputDirectory()
Get the directory where compiled application classes are placed. The default value istarget/classes
.- Returns:
- String
-
getScriptSourceDirectory
public java.lang.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). The default value issrc/main/scripts
.- Returns:
- String
-
getSourceDirectory
public java.lang.String getSourceDirectory()
Get 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
-
getTestOutputDirectory
public java.lang.String getTestOutputDirectory()
Get the directory where compiled test classes are placed. The default value istarget/test-classes
.- Returns:
- String
-
getTestSourceDirectory
public java.lang.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. The default value issrc/test/java
.- Returns:
- String
-
removeExtension
public void removeExtension(Extension extension)
Method removeExtension.- Parameters:
extension
-
-
setExtensions
public void setExtensions(java.util.List<Extension> extensions)
Set a set of build extensions to use from this project.- Parameters:
extensions
-
-
setOutputDirectory
public void setOutputDirectory(java.lang.String outputDirectory)
Set the directory where compiled application classes are placed. The default value istarget/classes
.- Parameters:
outputDirectory
-
-
setScriptSourceDirectory
public void setScriptSourceDirectory(java.lang.String scriptSourceDirectory)
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). The default value issrc/main/scripts
.- Parameters:
scriptSourceDirectory
-
-
setSourceDirectory
public void setSourceDirectory(java.lang.String sourceDirectory)
Set 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
-
-
setTestOutputDirectory
public void setTestOutputDirectory(java.lang.String testOutputDirectory)
Set the directory where compiled test classes are placed. The default value istarget/test-classes
.- Parameters:
testOutputDirectory
-
-
setTestSourceDirectory
public void setTestSourceDirectory(java.lang.String testSourceDirectory)
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. The default value issrc/test/java
.- Parameters:
testSourceDirectory
-
-
-