org.apache.maven.model.Build Maven / Gradle / Ivy
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.model;
/**
*
*
* The <build>
element contains
* informations required to build the project.
* Default values are defined in Super POM.
*
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class Build
extends BuildBase
implements java.io.Serializable, java.lang.Cloneable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
* 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 is src/main/java
.
*
*/
private String sourceDirectory;
/**
*
* 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 is
* src/main/scripts
.
*
*/
private String scriptSourceDirectory;
/**
*
* 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 is src/test/java
.
*
*/
private String testSourceDirectory;
/**
*
* The directory where compiled application classes
* are placed.
* The default value is
* target/classes
.
*
*/
private String outputDirectory;
/**
*
* The directory where compiled test classes are
* placed.
* The default value is
* target/test-classes
.
*
*/
private String testOutputDirectory;
/**
* Field extensions.
*/
private java.util.List extensions;
//-----------/
//- Methods -/
//-----------/
/**
* Method addExtension.
*
* @param extension a extension object.
*/
public void addExtension( Extension extension )
{
getExtensions().add( extension );
} //-- void addExtension( Extension )
/**
* Method clone.
*
* @return Build
*/
public Build clone()
{
try
{
Build copy = (Build) super.clone();
if ( this.extensions != null )
{
copy.extensions = new java.util.ArrayList();
for ( Extension item : this.extensions )
{
copy.extensions.add( ( (Extension) item).clone() );
}
}
return copy;
}
catch ( java.lang.Exception ex )
{
throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
+ " does not support clone()" ).initCause( ex );
}
} //-- Build clone()
/**
* Method getExtensions.
*
* @return List
*/
public java.util.List getExtensions()
{
if ( this.extensions == null )
{
this.extensions = new java.util.ArrayList();
}
return this.extensions;
} //-- java.util.List getExtensions()
/**
* Get the directory where compiled application classes are
* placed.
* The default value is
* target/classes
.
*
* @return String
*/
public String getOutputDirectory()
{
return this.outputDirectory;
} //-- String getOutputDirectory()
/**
* 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 is
* src/main/scripts
.
*
* @return String
*/
public String getScriptSourceDirectory()
{
return this.scriptSourceDirectory;
} //-- String getScriptSourceDirectory()
/**
* 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 is src/main/java
.
*
* @return String
*/
public String getSourceDirectory()
{
return this.sourceDirectory;
} //-- String getSourceDirectory()
/**
* Get the directory where compiled test classes are placed.
* The default value is
* target/test-classes
.
*
* @return String
*/
public String getTestOutputDirectory()
{
return this.testOutputDirectory;
} //-- String getTestOutputDirectory()
/**
* 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 is src/test/java
.
*
* @return String
*/
public String getTestSourceDirectory()
{
return this.testSourceDirectory;
} //-- String getTestSourceDirectory()
/**
* Method removeExtension.
*
* @param extension a extension object.
*/
public void removeExtension( Extension extension )
{
getExtensions().remove( extension );
} //-- void removeExtension( Extension )
/**
* Set a set of build extensions to use from this project.
*
* @param extensions a extensions object.
*/
public void setExtensions( java.util.List extensions )
{
this.extensions = extensions;
} //-- void setExtensions( java.util.List )
/**
* Set the directory where compiled application classes are
* placed.
* The default value is
* target/classes
.
*
* @param outputDirectory a outputDirectory object.
*/
public void setOutputDirectory( String outputDirectory )
{
this.outputDirectory = outputDirectory;
} //-- void setOutputDirectory( String )
/**
* 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 is
* src/main/scripts
.
*
* @param scriptSourceDirectory a scriptSourceDirectory object.
*/
public void setScriptSourceDirectory( String scriptSourceDirectory )
{
this.scriptSourceDirectory = scriptSourceDirectory;
} //-- void setScriptSourceDirectory( String )
/**
* 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 is src/main/java
.
*
* @param sourceDirectory a sourceDirectory object.
*/
public void setSourceDirectory( String sourceDirectory )
{
this.sourceDirectory = sourceDirectory;
} //-- void setSourceDirectory( String )
/**
* Set the directory where compiled test classes are placed.
* The default value is
* target/test-classes
.
*
* @param testOutputDirectory a testOutputDirectory object.
*/
public void setTestOutputDirectory( String testOutputDirectory )
{
this.testOutputDirectory = testOutputDirectory;
} //-- void setTestOutputDirectory( String )
/**
* 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 is src/test/java
.
*
* @param testSourceDirectory a testSourceDirectory object.
*/
public void setTestSourceDirectory( String testSourceDirectory )
{
this.testSourceDirectory = testSourceDirectory;
} //-- void setTestSourceDirectory( String )
/**
* @see java.lang.Object#toString()
*/
public String toString()
{
return "Build {" + super.toString() + "}";
}
}