org.apache.maven.plugin.eclipse.writers
Class EclipseWtpComponentWriter
java.lang.Object
org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
org.apache.maven.plugin.eclipse.writers.AbstractWtpResourceWriter
org.apache.maven.plugin.eclipse.writers.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 485864 2006-12-11 20:41:36Z fgiust $
- Author:
- Rahul Thakur, Fabrizio Giustina
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractWtpResourceWriter |
ARTIFACT_MAVEN_WAR_PLUGIN, 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 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(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 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
EclipseWtpComponentWriter
public EclipseWtpComponentWriter()
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 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-2007 Apache Software Foundation. All Rights Reserved.