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

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.EclipseWtpApplicationXMLWriter
All Implemented Interfaces:
EclipseWriter

public class EclipseWtpApplicationXMLWriter
extends AbstractWtpResourceWriter

This writer creates the application.xml and the .modulemaps files for RAD6 the the META-INF directory in the project root. this is where RAD6 requires the files to be. These will be independent of the real application.xml witch will be generated the stad. maven way.

Author:
Richard van Nieuwenhoven

Field Summary
 
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
EclipseWtpApplicationXMLWriter()
           
 
Method Summary
static void copyDirectoryStructure(File sourceDirectory, File destinationDirectory)
          Copies a entire directory structure without scm files.
 void write()
          write the application.xml and the .modulemaps file to the META-INF directory.
 
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
 

Constructor Detail

EclipseWtpApplicationXMLWriter

public EclipseWtpApplicationXMLWriter()
Method Detail

write

public void write()
           throws MojoExecutionException
write the application.xml and the .modulemaps file to the META-INF directory.

Throws:
MojoExecutionException - when writing the config files was not possible
See Also:
AbstractWtpResourceWriter#write(EclipseSourceDir[], ArtifactRepository, File)

copyDirectoryStructure

public static void copyDirectoryStructure(File sourceDirectory,
                                          File destinationDirectory)
                                   throws IOException
Copies a entire directory structure without scm files. Note:

Parameters:
sourceDirectory -
destinationDirectory -
Throws:
IOException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.