public class Build extends BuildBase implements Serializable, Cloneable
<build>
element contains
informations required to build the project.
Default values are defined in Super POM.Constructor and Description |
---|
Build() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(Extension extension)
Method addExtension.
|
Build |
clone()
Method clone.
|
List<Extension> |
getExtensions()
Method getExtensions.
|
String |
getOutputDirectory()
Get the directory where compiled application classes are
placed.
|
String |
getScriptSourceDirectory()
Get this element specifies a directory containing the script
sources of the
project.
|
String |
getSourceDirectory()
Get this element specifies a directory containing the source
of the project.
|
String |
getTestOutputDirectory()
Get the directory where compiled test classes are placed.
|
String |
getTestSourceDirectory()
Get this element specifies a directory containing the unit
test source of the
project.
|
void |
removeExtension(Extension extension)
Method removeExtension.
|
void |
setExtensions(List<Extension> extensions)
Set a set of build extensions to use from this project.
|
void |
setOutputDirectory(String outputDirectory)
Set the directory where compiled application classes are
placed.
|
void |
setScriptSourceDirectory(String scriptSourceDirectory)
Set this element specifies a directory containing the script
sources of the
project.
|
void |
setSourceDirectory(String sourceDirectory)
Set this element specifies a directory containing the source
of the project.
|
void |
setTestOutputDirectory(String testOutputDirectory)
Set the directory where compiled test classes are placed.
|
void |
setTestSourceDirectory(String testSourceDirectory)
Set this element specifies a directory containing the unit
test source of the
project.
|
addFilter, addResource, addTestResource, getDefaultGoal, getDirectory, getFilters, getFinalName, getResources, getTestResources, removeFilter, removeResource, removeTestResource, setDefaultGoal, setDirectory, setFilters, setFinalName, setResources, setTestResources
getPluginManagement, setPluginManagement
addPlugin, flushPluginMap, getLocation, getPlugins, getPluginsAsMap, removePlugin, setLocation, setPlugins
public void addExtension(Extension extension)
extension
- public String getOutputDirectory()
target/classes
.public String getScriptSourceDirectory()
src/main/scripts
.public String getSourceDirectory()
src/main/java
.public String getTestOutputDirectory()
target/test-classes
.public String getTestSourceDirectory()
src/test/java
.public void removeExtension(Extension extension)
extension
- public void setExtensions(List<Extension> extensions)
extensions
- public void setOutputDirectory(String outputDirectory)
target/classes
.outputDirectory
- public void setScriptSourceDirectory(String scriptSourceDirectory)
src/main/scripts
.scriptSourceDirectory
- public void setSourceDirectory(String sourceDirectory)
src/main/java
.sourceDirectory
- public void setTestOutputDirectory(String testOutputDirectory)
target/test-classes
.testOutputDirectory
- public void setTestSourceDirectory(String testSourceDirectory)
src/test/java
.testSourceDirectory
- Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.