org.apache.maven.plugin.ear

Class WebModule

public class WebModule extends AbstractEarModule

The EarModule implementation for a Web application module.

Version: $Id: WebModule.java 332974 2005-11-13 12:42:44Z snicoll $

Author: Stephane Nicoll

Field Summary
protected static StringCONTEXT_ROOT_FIELD
protected static StringWEB_MODULE
protected static StringWEB_URI_FIELD
Constructor Summary
WebModule()
WebModule(Artifact a)
Method Summary
voidappendModule(XMLWriter writer, String version)
StringgetContextRoot()
Returns the context root to use for the web module.
protected StringgetType()
voidresolveArtifact(Set artifacts, String defaultJavaBundleDir)

Field Detail

CONTEXT_ROOT_FIELD

protected static final String CONTEXT_ROOT_FIELD

WEB_MODULE

protected static final String WEB_MODULE

WEB_URI_FIELD

protected static final String WEB_URI_FIELD

Constructor Detail

WebModule

public WebModule()

WebModule

public WebModule(Artifact a)

Method Detail

appendModule

public void appendModule(XMLWriter writer, String version)

getContextRoot

public String getContextRoot()
Returns the context root to use for the web module.

Note that this might return null till the artifact has been resolved.

Returns: the context root

getType

protected String getType()

resolveArtifact

public void resolveArtifact(Set artifacts, String defaultJavaBundleDir)
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.