org.apache.maven.plugin.eclipse.writers.wtp
Class EclipseWtpComponentWriter
java.lang.Object
org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
org.apache.maven.plugin.eclipse.writers.wtp.AbstractWtpResourceWriter
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 720443 2008-11-25 08:48:22Z rinku $
- Author:
- Rahul Thakur, Fabrizio Giustina
Field Summary |
static java.lang.String |
ATTR_CONTEXT_ROOT
Context root attribute. |
static java.lang.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 |
Method Summary |
protected java.lang.String |
getComponentFileName()
File name where the WTP component settings will be stored for our Eclipse Project. |
protected java.lang.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(org.codehaus.plexus.util.xml.XMLWriter writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTR_CONTEXT_ROOT
public static final java.lang.String ATTR_CONTEXT_ROOT
- Context root attribute.
- See Also:
- Constant Field Values
DIR_WTP_SETTINGS
public static final java.lang.String DIR_WTP_SETTINGS
- The .settings folder for Web Tools Project 1.x release.
- See Also:
- Constant Field Values
EclipseWtpComponentWriter
public EclipseWtpComponentWriter()
getComponentFileName
protected java.lang.String getComponentFileName()
- File name where the WTP component settings will be stored for our Eclipse Project.
- Returns:
.component
getProjectVersion
protected java.lang.String getProjectVersion()
- Version number added to component configuration.
- Returns:
1.0
write
public void write()
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from interface:
EclipseWriter
- Main method that should be implemented by the writer to do the work.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
EclipseWriter.write()
writeContextRoot
protected void writeContextRoot(org.codehaus.plexus.util.xml.XMLWriter writer)
- Parameters:
writer
-
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.