org.codehaus.mojo.appfuse.mojo
Class CopyXMLFilesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.appfuse.mojo.MojoBase
          extended by org.codehaus.mojo.appfuse.mojo.CopyMojoBase
              extended by org.codehaus.mojo.appfuse.mojo.CopyXMLFilesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class CopyXMLFilesMojo
extends CopyMojoBase

This mojo class will copy the hbm.xml model files from the generation directory to the source directory.

Version:
$Id: $
Author:
Scott Ryan

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CopyXMLFilesMojo()
          Creates a new CopyXMLFilesMojo object.
 
Method Summary
protected  java.lang.String augmentFilePattern(java.lang.String inFilePattern)
          This method takes the ant based file pattern and adds the proper suffix onto it for the type of processing the mojo needs to do.
 void execute()
          This method will copy the files from the generated directory to the final resting place inside the project.
 java.lang.String toString()
          This method creates a String representation of this object.
 
Methods inherited from class org.codehaus.mojo.appfuse.mojo.CopyMojoBase
createCopyTask, getUpdatedFilePattern
 
Methods inherited from class org.codehaus.mojo.appfuse.mojo.MojoBase
getBasePackageName, getCopyOverWrite, getFilePattern, getModelDirectory, getModelPackageName, getMojoName, getOutputDirectory, getProcessingProperties, getSourceDirectory, setBasePackageName, setCopyOverWrite, setFilePattern, setModelDirectory, setMojoName, setOutputDirectory, setProcessingProperties, setSourceDirectory
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyXMLFilesMojo

public CopyXMLFilesMojo()
Creates a new CopyXMLFilesMojo object.

Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
This method will copy the files from the generated directory to the final resting place inside the project.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class CopyMojoBase
Throws:
org.apache.maven.plugin.MojoExecutionException - Thrown if we fail to obtain an appfuse resource.

augmentFilePattern

protected java.lang.String augmentFilePattern(java.lang.String inFilePattern)
This method takes the ant based file pattern and adds the proper suffix onto it for the type of processing the mojo needs to do. The default is to add .java to the end however if you need a different suffix or need to manipulate the pattern in some way you can overload this method.

Overrides:
augmentFilePattern in class CopyMojoBase
Parameters:
inFilePattern - The initial file pattern requested for processing.
Returns:
An augmented file pattern with the type .java added to it.

toString

public java.lang.String toString()
This method creates a String representation of this object.

Overrides:
toString in class MojoBase
Returns:
the String representation of this object


Copyright © 2006-2009. All Rights Reserved.