org.apache.maven.plugin.eclipse.writers.wtp
Class AbstractWtpResourceWriter

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
      extended by org.apache.maven.plugin.eclipse.writers.wtp.AbstractWtpResourceWriter
All Implemented Interfaces:
EclipseWriter
Direct Known Subclasses:
EclipseWtpApplicationXMLWriter, EclipseWtpComponentWriter, EclipseWtpFacetsWriter, EclipseWtpmodulesWriter

public abstract class AbstractWtpResourceWriter
extends AbstractEclipseWriter

Base class to hold common constants used by extending classes.

Author:
Rahul Thakur, Fabrizio Giustina

Field Summary
protected static String ATTR_DEPLOY_NAME
           
protected static String ATTR_DEPLOY_PATH
           
protected static String ATTR_MODULE_ID
           
protected static String ATTR_MODULE_TYPE_ID
           
protected static String ATTR_NAME
           
protected static String ATTR_PROJECT_VERSION
           
protected static String ATTR_SOURCE_PATH
           
protected static String ATTR_VALUE
           
protected static String ELT_MODULE_TYPE
           
protected static String ELT_PROJECT_MODULES
           
protected static String ELT_PROPERTY
           
protected static String ELT_VERSION
           
protected static String ELT_WB_MODULE
           
protected static String ELT_WB_RESOURCE
           
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
config, log
 
Constructor Summary
AbstractWtpResourceWriter()
           
 
Method Summary
protected  void addDependency(XMLWriter writer, IdeDependency dep, ArtifactRepository localRepository, File basedir, String deployPath)
          Adds dependency for Eclipse WTP project.
protected  void writeModuleTypeAccordingToPackaging(MavenProject project, XMLWriter writer, File buildOutputDirectory)
           
protected  void writeWarOrEarResources(XMLWriter writer, MavenProject project, ArtifactRepository localRepository)
           
 
Methods inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.eclipse.writers.EclipseWriter
write
 

Field Detail

ATTR_VALUE

protected static final String ATTR_VALUE
See Also:
Constant Field Values

ATTR_NAME

protected static final String ATTR_NAME
See Also:
Constant Field Values

ELT_PROPERTY

protected static final String ELT_PROPERTY
See Also:
Constant Field Values

ELT_VERSION

protected static final String ELT_VERSION
See Also:
Constant Field Values

ATTR_MODULE_TYPE_ID

protected static final String ATTR_MODULE_TYPE_ID
See Also:
Constant Field Values

ATTR_SOURCE_PATH

protected static final String ATTR_SOURCE_PATH
See Also:
Constant Field Values

ATTR_DEPLOY_PATH

protected static final String ATTR_DEPLOY_PATH
See Also:
Constant Field Values

ELT_WB_RESOURCE

protected static final String ELT_WB_RESOURCE
See Also:
Constant Field Values

ELT_MODULE_TYPE

protected static final String ELT_MODULE_TYPE
See Also:
Constant Field Values

ATTR_DEPLOY_NAME

protected static final String ATTR_DEPLOY_NAME
See Also:
Constant Field Values

ELT_WB_MODULE

protected static final String ELT_WB_MODULE
See Also:
Constant Field Values

ATTR_MODULE_ID

protected static final String ATTR_MODULE_ID
See Also:
Constant Field Values

ATTR_PROJECT_VERSION

protected static final String ATTR_PROJECT_VERSION
See Also:
Constant Field Values

ELT_PROJECT_MODULES

protected static final String ELT_PROJECT_MODULES
See Also:
Constant Field Values
Constructor Detail

AbstractWtpResourceWriter

public AbstractWtpResourceWriter()
Method Detail

writeModuleTypeAccordingToPackaging

protected void writeModuleTypeAccordingToPackaging(MavenProject project,
                                                   XMLWriter writer,
                                                   File buildOutputDirectory)
                                            throws MojoExecutionException
Parameters:
project -
writer -
Throws:
MojoExecutionException

addDependency

protected void addDependency(XMLWriter writer,
                             IdeDependency dep,
                             ArtifactRepository localRepository,
                             File basedir,
                             String deployPath)
                      throws MojoExecutionException
Adds dependency for Eclipse WTP project.

Parameters:
writer -
artifact -
localRepository -
basedir -
Throws:
MojoExecutionException

writeWarOrEarResources

protected void writeWarOrEarResources(XMLWriter writer,
                                      MavenProject project,
                                      ArtifactRepository localRepository)
                               throws MojoExecutionException
Throws:
MojoExecutionException


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.