org.apache.maven.model
Class Build

java.lang.Object
  extended by org.apache.maven.model.PluginContainer
      extended by org.apache.maven.model.PluginConfiguration
          extended by org.apache.maven.model.BuildBase
              extended by org.apache.maven.model.Build
All Implemented Interfaces:
java.io.Serializable

public class Build
extends BuildBase
implements java.io.Serializable

The <build> element contains informations required to build the project.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Build()
           
 
Method Summary
 void addExtension(Extension extension)
          Method addExtension
 java.util.List getExtensions()
          Method getExtensions
 java.lang.String getModelEncoding()
           
 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 extensions)
          Set A set of build extensions to use from this project.
 void setModelEncoding(java.lang.String modelEncoding)
           
 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, getPlugins, getPluginsAsMap, removePlugin, setPlugins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Build

public Build()
Method Detail

addExtension

public void addExtension(Extension extension)
Method addExtension

Parameters:
extension -

getExtensions

public java.util.List getExtensions()
Method getExtensions


getOutputDirectory

public java.lang.String getOutputDirectory()
Get The directory where compiled application classes are placed.


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).


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 source in this directory when the project is built. The path given is relative to the project descriptor.


getTestOutputDirectory

public java.lang.String getTestOutputDirectory()
Get The directory where compiled test classes are placed.


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.


removeExtension

public void removeExtension(Extension extension)
Method removeExtension

Parameters:
extension -

setExtensions

public void setExtensions(java.util.List 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.

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).

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 source in this directory when the project is built. The path given is relative to the project descriptor.

Parameters:
sourceDirectory -

setTestOutputDirectory

public void setTestOutputDirectory(java.lang.String testOutputDirectory)
Set The directory where compiled test classes are placed.

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.

Parameters:
testSourceDirectory -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Overrides:
setModelEncoding in class BuildBase

getModelEncoding

public java.lang.String getModelEncoding()
Overrides:
getModelEncoding in class BuildBase


Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.