org.apache.torque.mojo
Class MorphVersionTableMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.torque.mojo.BaseMojo
          extended by org.apache.torque.mojo.AbstractMorphSingleMojo
              extended by org.apache.torque.mojo.MorphVersionTableMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class MorphVersionTableMojo
extends AbstractMorphSingleMojo

Morph the xml inside KS_DB_VERSION.xml so it has Maven friendly placeholders for version info


Field Summary
 
Fields inherited from class org.apache.torque.mojo.BaseMojo
FS, SKIP_PACKAGING_TYPE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MorphVersionTableMojo()
           
 
Method Summary
protected  void beforeExecution()
           
protected  void executeMojo()
           
protected  Morpher getMorpher(MorphRequest request, String artifactId)
           
 File getNewVersionXMLFile()
           
 File getOldVersionXMLFile()
           
protected  boolean isMorphNeeded()
           
 void setNewVersionXMLFile(File newVersionXMLFile)
           
 void setOldVersionXMLFile(File oldVersionXMLFile)
           
 
Methods inherited from class org.apache.torque.mojo.AbstractMorphSingleMojo
getArtifactId, getNewFile, getOldFile, setArtifactId, setNewFile, setOldFile, skipMojo
 
Methods inherited from class org.apache.torque.mojo.BaseMojo
afterExecution, 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
 

Constructor Detail

MorphVersionTableMojo

public MorphVersionTableMojo()
Method Detail

beforeExecution

protected void beforeExecution()
Overrides:
beforeExecution in class BaseMojo

isMorphNeeded

protected boolean isMorphNeeded()
Overrides:
isMorphNeeded in class AbstractMorphSingleMojo

executeMojo

protected void executeMojo()
                    throws org.apache.maven.plugin.MojoExecutionException
Overrides:
executeMojo in class AbstractMorphSingleMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

getMorpher

protected Morpher getMorpher(MorphRequest request,
                             String artifactId)
Specified by:
getMorpher in class AbstractMorphSingleMojo

getNewVersionXMLFile

public File getNewVersionXMLFile()
Returns:
the newVersionXMLFile

setNewVersionXMLFile

public void setNewVersionXMLFile(File newVersionXMLFile)
Parameters:
newVersionXMLFile - the newVersionXMLFile to set

getOldVersionXMLFile

public File getOldVersionXMLFile()
Returns:
the oldVersionXMLFile

setOldVersionXMLFile

public void setOldVersionXMLFile(File oldVersionXMLFile)
Parameters:
oldVersionXMLFile - the oldVersionXMLFile to set


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.