org.apache.torque.mojo
Class ConvertCloverETLMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.torque.mojo.BaseMojo
org.apache.torque.mojo.ConvertCloverETLMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ConvertCloverETLMojo
- extends BaseMojo
This project converts Clover ETL data generated by Kuali's Ant based tooling into a format that is consumable by the Maven Impex plugin
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 |
ConvertCloverETLMojo
public ConvertCloverETLMojo()
executeMojo
protected void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Specified by:
executeMojo
in class BaseMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
handleSchema
protected void handleSchema()
parseAll
protected String[] parseAll(String s,
String open,
String close)
handleDataDTD
protected void handleDataDTD()
throws IOException
- Throws:
IOException
getDataDTDContent
protected String getDataDTDContent(List<CloverETLTable> tables)
getTableDTDContent
protected String getTableDTDContent(CloverETLTable table)
getColumnDTDContent
protected String getColumnDTDContent(List<CloverETLColumn> columns)
getProlog
protected String getProlog(List<CloverETLTable> tables)
getDataDTDTable
protected CloverETLTable getDataDTDTable(String s)
getCloverETLColumn
protected CloverETLColumn getCloverETLColumn(String s)
getTables
protected String[] getTables(String contents)
parse
protected String parse(String s,
String begin,
String close)
handleData
protected void handleData()
convertFile
protected void convertFile(File file)
getTable
protected CloverETLTable getTable(File file)
throws IOException
- Throws:
IOException
readLines
protected List<String> readLines(String s)
getRows
protected List<String[]> getRows(String content,
String[] columns,
File file)
escape
protected String escape(String s)
getXml
protected String getXml(CloverETLTable table)
getSourceDir
public File getSourceDir()
setSourceDir
public void setSourceDir(File sourceDir)
getOutputDir
public File getOutputDir()
setOutputDir
public void setOutputDir(File outputDir)
getDelimiter
public String getDelimiter()
setDelimiter
public void setDelimiter(String delimiter)
getSchemaFilename
public String getSchemaFilename()
setSchemaFilename
public void setSchemaFilename(String schemaFilename)
getDatabaseDTDFilename
public String getDatabaseDTDFilename()
setDatabaseDTDFilename
public void setDatabaseDTDFilename(String databaseDTDFilename)
getDataDTDFilename
public String getDataDTDFilename()
setDataDTDFilename
public void setDataDTDFilename(String dataDTDFilename)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.