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

org.codehaus.mojo.was6.EndpointEnabler Maven / Gradle / Ivy

Go to download

Tools for working with IBM WebSphere 6.0.x and 6.1.x. This plugin works along with an installation of WebSphere Application Server or Process Server - standalone or ND installation, to provide automated tasks for: generating RMIC stubs, starting/stopping servers, installing/updating/uninstalling EARs to application servers, run serviceDeploy and run arbitrary scripts with wsadmin.

The newest version!
package org.codehaus.mojo.was6;

import java.io.File;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

import org.apache.maven.plugin.MojoExecutionException;
import org.dom4j.Document;
import org.dom4j.Element;

/**
 * Executes the endpoint enabler ant task on the EAR archive.
 * 
 * @see javadocs for more information.
 * @goal endpointEnabler
 * @author karltdav
 * @since 1.1.1
 */
public class EndpointEnabler
    extends AbstractWas6Mojo
{

    /**
     * The earFile to process. See javadoc for a description.
     * 
     * @parameter expression="${was6.earFile}" default-value="${project.artifact.file}"
     * @required
     */
    private File earFile;

    /**
     * @parameter
     */
    private Map properties;

    /**
     * {@inheritDoc}
     */
    protected void configureBuildScript( Document document )
        throws MojoExecutionException
    {
        configureTaskAttribute( document, "earFile", earFile );

        if ( properties != null ) {
            Element element = getTaskElement( document );
            for ( Iterator i = properties.entrySet().iterator(); i.hasNext(); )
            {
                Entry entry = (Entry) i.next();
                Element propertyElement = element.addElement( "property" );
                propertyElement.addAttribute( "key", entry.getKey().toString() );
                propertyElement.addAttribute( "value", entry.getValue().toString() );
            }
        }
    }

    /**
     * {@inheritDoc}
     */
    protected String getTaskName()
    {
        return "wsEndpointEnabler";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy