org.apache.torque.mojo
Class MorphDataMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.torque.mojo.BaseMojo
org.apache.torque.mojo.MorphDataMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class MorphDataMojo
- extends BaseMojo
Converts Ant impex data XML files into maven-impex-plugin data XML files
Field Summary |
private File |
newDataOutputDir
The directory in which the morphed XML will be generated. |
private File |
oldDataXMLDir
The directory containing the source (non-morphed) data XML files |
private String |
oldDataXMLExcludes
The default set of files in that directory to exclude (ant style notation) |
private String |
oldDataXMLIncludes
The default set of files in that directory to include (ant style notation) |
(package private) org.kuali.core.db.torque.Utils |
utils
|
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, skipMojo |
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 |
utils
org.kuali.core.db.torque.Utils utils
newDataOutputDir
private File newDataOutputDir
- The directory in which the morphed XML will be generated.
oldDataXMLDir
private File oldDataXMLDir
- The directory containing the source (non-morphed) data XML files
oldDataXMLIncludes
private String oldDataXMLIncludes
- The default set of files in that directory to include (ant style notation)
oldDataXMLExcludes
private String oldDataXMLExcludes
- The default set of files in that directory to exclude (ant style notation)
MorphDataMojo
public MorphDataMojo()
getOldFiles
protected String[] getOldFiles()
throws IOException
- Use our configuration to determine the list of files we need to convert
- Throws:
IOException
isMorphNeeded
protected boolean isMorphNeeded(File oldFile,
File newFile)
getMorphRequests
protected List<MorphRequest> getMorphRequests(String[] oldFiles)
throws IOException
- Throws:
IOException
showConfig
protected void showConfig()
executeMojo
protected void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
executeMojo
in class BaseMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
getNewDataOutputDir
public File getNewDataOutputDir()
setNewDataOutputDir
public void setNewDataOutputDir(File newDataOutputDir)
getOldDataXMLDir
public File getOldDataXMLDir()
setOldDataXMLDir
public void setOldDataXMLDir(File oldDataXMLDir)
getOldDataXMLIncludes
public String getOldDataXMLIncludes()
setOldDataXMLIncludes
public void setOldDataXMLIncludes(String oldDataXMLIncludes)
getOldDataXMLExcludes
public String getOldDataXMLExcludes()
setOldDataXMLExcludes
public void setOldDataXMLExcludes(String oldDataXMLExcludes)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.