org.apache.maven.plugin.eclipse.writers.wtp
Class EclipseWtpApplicationXMLWriter
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.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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EclipseWtpApplicationXMLWriter
public EclipseWtpApplicationXMLWriter()
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:
- It will include empty directories.
- The
sourceDirectory
must exists.
- Parameters:
sourceDirectory
- destinationDirectory
-
- Throws:
IOException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.