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

org.plasma.provisioning.ant.SDOTask Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
/**
 *         PlasmaSDO™ License
 * 
 * This is a community release of PlasmaSDO™, a dual-license 
 * Service Data Object (SDO) 2.1 implementation. 
 * This particular copy of the software is released under the 
 * version 2 of the GNU General Public License. PlasmaSDO™ was developed by 
 * TerraMeta Software, Inc.
 * 
 * Copyright (c) 2013, TerraMeta Software, Inc. All rights reserved.
 * 
 * General License information can be found below.
 * 
 * This distribution may include materials developed by third
 * parties. For license and attribution notices for these
 * materials, please refer to the documentation that accompanies
 * this distribution (see the "Licenses for Third-Party Components"
 * appendix) or view the online documentation at 
 * .
 *  
 */
package org.plasma.provisioning.ant;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.tools.ant.BuildException;
import org.plasma.provisioning.cli.SDOTool;

public class SDOTask extends ProvisioningTask {
    private static Log log =LogFactory.getLog(
            SDOTask.class); 
   
    private String dialect;
    private String dest;

    public void execute() throws BuildException {
        getCommandLine().setClassname(SDOTool.class.getName()); 
        if (this.dialect != null)
	        getCommandLine().getJavaCommand().addArguments(new String[] {
	            COMMAND_PREFIX + command, 
	            dialect,
	            dest});
        else
	        getCommandLine().getJavaCommand().addArguments(new String[] {
		            COMMAND_PREFIX + command, 
		            dest});
        //setFork(true);  
        //setNewenvironment(true);            
        super.execute();
    }

    public String getDialect() {
		return dialect;
	}

	public String getDest() {
		return dest;
	}

	public void setDest(String dest) {
        this.dest = dest;
    }

	public void setDialect(String dialect) {
		this.dialect = dialect;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy