All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shaded.org.apache.maven.model.Build Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.9.1,
// any modifications will be overwritten.
// ==============================================================

package shaded.shaded.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
     */
    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
     */
    public void removeExtension( Extension extension )
    {
        getExtensions().remove( extension );
    } //-- void removeExtension( Extension )

    /**
     * Set a set of build extensions to use from this project.
     * 
     * @param extensions
     */
    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
     */
    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
     */
    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
     */
    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
     */
    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
     */
    public void setTestSourceDirectory( String testSourceDirectory )
    {
        this.testSourceDirectory = testSourceDirectory;
    } //-- void setTestSourceDirectory( String )

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy