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

org.ow2.util.maven.jbuilding.DeploymentPlan Maven / Gradle / Ivy

There is a newer version: 1.0.37
Show newest version
/**
 * OW2 Util
 * Copyright (C) 2007 Bull S.A.S.
 * Contact: [email protected]
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 *
 * --------------------------------------------------------------------------
 * $Id: DeploymentPlan.java 4955 2009-05-13 12:24:17Z fornacif $
 * --------------------------------------------------------------------------
 */

package org.ow2.util.maven.jbuilding;


/**
 * Represents a DeploymentPlan.
 * @author Francois Fornaciari
 */
public class DeploymentPlan {


    /**
     * Deployment plan's name.
     */
    private String name = null;

    /**
     * Deployment plan's includes.
     */
    private String[] includes = null;

    /**
     * Deployment plan's maven2 artifact items.
     */
    private ArtifactItem[] artifactItems = null;

    /**
     * Deployment plan's directory path.
     */
    private String directory = null;

    /**
     * @return Service's name.
     */
    public String getName() {
        return name;
    }

    /**
     * @param name The name to set
     */
    public void setName(final String name) {
        this.name = name;
    }

    /**
     * @return Deployment plan's includes.
     */
    public String[] getIncludes() {
        if (includes != null) {
            return includes.clone();
        }
        return null;
    }

    /**
     * @param includes the includes to set
     */
    public void setIncludes(final String[] includes) {
        this.includes = includes.clone();
    }

    /**
     * @return Deployment plan artifact items.
     */
    public ArtifactItem[] getArtifactItems() {
        if (artifactItems != null) {
            return artifactItems.clone();
        }
        return null;
    }

    /**
     * @param artifactItems The artifact items to set
     */
    public void setArtifactItems(final ArtifactItem[] artifactItems) {
        this.artifactItems = artifactItems.clone();
    }

    /**
     * @return Deployment plan directory path.
     */
    public String getDirectory() {
        return directory;
    }

    /**
     * @param directory Deployment plan directory path.
     */
    public void setDirectory(final String directory) {
        this.directory = directory;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy