org.apache.torque.mojo
Class AbstractMorphSingleMojo
java.lang.Object
   org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.AbstractMojo
       org.apache.torque.mojo.BaseMojo
org.apache.torque.mojo.BaseMojo
           org.apache.torque.mojo.AbstractMorphSingleMojo
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
 
 
| 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 | 
 
AbstractMorphSingleMojo
public AbstractMorphSingleMojo()
skipMojo
protected boolean skipMojo()
- Add logic to the basic skip() method for skipping based on a morph being needed
 
- 
- Overrides:
- skipMojoin class- BaseMojo
 
- 
- Returns:
- trueif 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:
- executeMojoin 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)
- 
 
getArtifactId
public String getArtifactId()
- 
 
setArtifactId
public void setArtifactId(String artifactId)
- 
 
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.