org.apache.torque.mojo
Class AbstractMorphSingleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.torque.mojo.BaseMojo
org.apache.torque.mojo.AbstractMorphSingleMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- MorphSchemaMojo, MorphVersionTableMojo
public abstract class AbstractMorphSingleMojo
- extends BaseMojo
Common logic for morphing one file to another file
Field Summary |
private File |
newFile
The file that will contain the morphed contents |
private File |
oldFile
The file containing the contents to be morphed |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.torque.mojo.BaseMojo |
afterExecution, beforeExecution, execute, getEncoding, getMavenSession, getProject, getSettings, isForceMojoExecution, isSkip, isStartMavenLogger, setEncoding, setForceMojoExecution, setMavenSession, setProject, setSettings, setSkip, setStartMavenLogger |
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, toString, wait, wait, wait |
newFile
private File newFile
- The file that will contain the morphed contents
oldFile
private File oldFile
- The file containing the contents to be morphed
AbstractMorphSingleMojo
public AbstractMorphSingleMojo()
skipMojo
protected boolean skipMojo()
- Add logic to the basic skip() method for skipping based on a morph being needed
- Overrides:
skipMojo
in class BaseMojo
- Returns:
true
if the mojo execution should be skipped.
isMorphNeeded
protected boolean isMorphNeeded()
getMorpher
protected abstract Morpher getMorpher(MorphRequest request,
String artifactId)
executeMojo
protected void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
executeMojo
in class BaseMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
getNewFile
public File getNewFile()
setNewFile
public void setNewFile(File newFile)
getOldFile
public File getOldFile()
setOldFile
public void setOldFile(File oldFile)
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.