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

org.codehaus.mojo.nbm.model.NbmResource Maven / Gradle / Ivy

Go to download

Maven plugin for creating NetBeans modules. It defines a custom lifecycle called "nbm". During packaging, the module JAR is enhanced with NetBeans-specific manifest entries and, along with other required files, packed into a *.nbm file, ready for distribution. Additionally the plugin provides aggregator goals to create an update site or cluster for your module projects.

There is a newer version: 4.1
Show newest version
/*
 =================== DO NOT EDIT THIS FILE ====================
 Generated by Modello 1.5 on 2013-09-16 16:26:41,
 any modifications will be overwritten.
 ==============================================================
 */

package org.codehaus.mojo.nbm.model;

/**
 * Class NbmResource.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class NbmResource
    implements java.io.Serializable
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * The base directory, all paths within the nbm file will be
     * the same as paths within the base directory.
     */
    private String baseDirectory;

    /**
     * A relative path to be added to cluster root where the files
     * will be copied to.
     */
    private String relativeClusterPath;

    /**
     * Field includes.
     */
    private java.util.List includes;

    /**
     * Field excludes.
     */
    private java.util.List excludes;


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method addExclude.
     * 
     * @param string
     */
    public void addExclude( String string )
    {
        getExcludes().add( string );
    } //-- void addExclude( String )

    /**
     * Method addInclude.
     * 
     * @param string
     */
    public void addInclude( String string )
    {
        getIncludes().add( string );
    } //-- void addInclude( String )

    /**
     * Get the base directory, all paths within the nbm file will
     * be the same as paths within the base directory.
     * 
     * @return String
     */
    public String getBaseDirectory()
    {
        return this.baseDirectory;
    } //-- String getBaseDirectory()

    /**
     * Method getExcludes.
     * 
     * @return List
     */
    public java.util.List getExcludes()
    {
        if ( this.excludes == null )
        {
            this.excludes = new java.util.ArrayList();
        }

        return this.excludes;
    } //-- java.util.List getExcludes()

    /**
     * Method getIncludes.
     * 
     * @return List
     */
    public java.util.List getIncludes()
    {
        if ( this.includes == null )
        {
            this.includes = new java.util.ArrayList();
        }

        return this.includes;
    } //-- java.util.List getIncludes()

    /**
     * Get a relative path to be added to cluster root where the
     * files will be copied to.
     * 
     * @return String
     */
    public String getRelativeClusterPath()
    {
        return this.relativeClusterPath;
    } //-- String getRelativeClusterPath()

    /**
     * Method removeExclude.
     * 
     * @param string
     */
    public void removeExclude( String string )
    {
        getExcludes().remove( string );
    } //-- void removeExclude( String )

    /**
     * Method removeInclude.
     * 
     * @param string
     */
    public void removeInclude( String string )
    {
        getIncludes().remove( string );
    } //-- void removeInclude( String )

    /**
     * Set the base directory, all paths within the nbm file will
     * be the same as paths within the base directory.
     * 
     * @param baseDirectory
     */
    public void setBaseDirectory( String baseDirectory )
    {
        this.baseDirectory = baseDirectory;
    } //-- void setBaseDirectory( String )

    /**
     * Set exclude pattern, what files within the basedir shall not
     * be included.
     * 
     * @param excludes
     */
    public void setExcludes( java.util.List excludes )
    {
        this.excludes = excludes;
    } //-- void setExcludes( java.util.List )

    /**
     * Set include pattern, what shall be included in the nbm.
     * 
     * @param includes
     */
    public void setIncludes( java.util.List includes )
    {
        this.includes = includes;
    } //-- void setIncludes( java.util.List )

    /**
     * Set a relative path to be added to cluster root where the
     * files will be copied to.
     * 
     * @param relativeClusterPath
     */
    public void setRelativeClusterPath( String relativeClusterPath )
    {
        this.relativeClusterPath = relativeClusterPath;
    } //-- void setRelativeClusterPath( String )

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy