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

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

public class EclipseWtpComponentWriter
extends AbstractWtpResourceWriter

Creates a .settings folder for Eclipse WTP 1.x release and writes out the configuration under it.

Version:
$Id: EclipseWtpComponentWriter.java 1517906 2013-08-27 18:25:03Z krosenvold $
Author:
Rahul Thakur, Fabrizio Giustina

Field Summary
static String ATTR_CONTEXT_ROOT
          Context root attribute.
static String DIR_WTP_SETTINGS
          The .settings folder for Web Tools Project 1.x release.
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.wtp.AbstractWtpResourceWriter
ATTR_DEPLOY_NAME, ATTR_DEPLOY_PATH, ATTR_MODULE_ID, ATTR_MODULE_TYPE_ID, ATTR_NAME, ATTR_PROJECT_VERSION, ATTR_SOURCE_PATH, ATTR_VALUE, ELT_MODULE_TYPE, ELT_PROJECT_MODULES, ELT_PROPERTY, ELT_VERSION, ELT_WB_MODULE, ELT_WB_RESOURCE
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
config, log
 
Constructor Summary
EclipseWtpComponentWriter()
           
 
Method Summary
protected  String getComponentFileName()
          File name where the WTP component settings will be stored for our Eclipse Project.
protected  String getProjectVersion()
          Version number added to component configuration.
 void write()
          Main method that should be implemented by the writer to do the work.
protected  void writeContextRoot(XMLWriter writer)
           
 
Methods inherited from class org.apache.maven.plugin.eclipse.writers.wtp.AbstractWtpResourceWriter
addDependency, writeModuleTypeAccordingToPackaging, writeWarOrEarResources
 
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
 

Field Detail

ATTR_CONTEXT_ROOT

public static final String ATTR_CONTEXT_ROOT
Context root attribute.

See Also:
Constant Field Values

DIR_WTP_SETTINGS

public static final String DIR_WTP_SETTINGS
The .settings folder for Web Tools Project 1.x release.

See Also:
Constant Field Values
Constructor Detail

EclipseWtpComponentWriter

public EclipseWtpComponentWriter()
Method Detail

getComponentFileName

protected String getComponentFileName()
File name where the WTP component settings will be stored for our Eclipse Project.

Returns:
.component

getProjectVersion

protected String getProjectVersion()
Version number added to component configuration.

Returns:
1.0

write

public void write()
           throws MojoExecutionException
Description copied from interface: EclipseWriter
Main method that should be implemented by the writer to do the work.

Throws:
MojoExecutionException
See Also:
EclipseWriter.write()

writeContextRoot

protected void writeContextRoot(XMLWriter writer)
Parameters:
writer -


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