org.codehaus.mojo.appfuse.mojo
Class CopyModelFilesMojo

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.CopyModelFilesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class CopyModelFilesMojo
extends CopyMojoBase

This mojo class will copy the model java files from the generation directory to the target directory.

Version:
$Id: $
Author:
Scott Ryan

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CopyModelFilesMojo()
          Creates a new CopyModelFilesMojo 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.
 java.lang.String toString()
          This method creates a String representation of this object
 
Methods inherited from class org.codehaus.mojo.appfuse.mojo.CopyMojoBase
createCopyTask, execute, 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

CopyModelFilesMojo

public CopyModelFilesMojo()
Creates a new CopyModelFilesMojo object.

Method Detail

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.