public class EclipseWtpComponentWriter extends AbstractWtpResourceWriter
| Modifier and Type | Field and Description |
|---|---|
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.
|
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_RESOURCEconfig, log| Constructor and Description |
|---|
EclipseWtpComponentWriter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
private void |
writeModuleTypeComponent(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String packaging,
java.io.File buildOutputDirectory,
EclipseSourceDir[] sourceDirs,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
Writes out the module type settings for a Web Tools Project to a component file.
|
addDependency, writeModuleTypeAccordingToPackaging, writeWarOrEarResourcesinitpublic static final java.lang.String ATTR_CONTEXT_ROOT
public static final java.lang.String DIR_WTP_SETTINGS
protected java.lang.String getComponentFileName()
.componentprotected java.lang.String getProjectVersion()
1.0public void write()
throws org.apache.maven.plugin.MojoExecutionException
EclipseWriterorg.apache.maven.plugin.MojoExecutionExceptionEclipseWriter.write()private void writeModuleTypeComponent(org.codehaus.plexus.util.xml.XMLWriter writer,
java.lang.String packaging,
java.io.File buildOutputDirectory,
EclipseSourceDir[] sourceDirs,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
throws org.apache.maven.plugin.MojoExecutionException
writer - packaging - buildOutputDirectory - sourceDirs - localRepository - org.apache.maven.plugin.MojoExecutionExceptionprotected void writeContextRoot(org.codehaus.plexus.util.xml.XMLWriter writer)
writer -