org.apache.torque.mojo
Class ConvertCloverETLMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.torque.mojo.BaseMojo
          extended by 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


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
ConvertCloverETLMojo()
           
 
Method Summary
protected  void convertFile(File file)
           
protected  String escape(String s)
           
protected  void executeMojo()
           
protected  CloverETLColumn getCloverETLColumn(String s)
           
protected  String getColumnDTDContent(List<CloverETLColumn> columns)
           
 String getDatabaseDTDFilename()
           
protected  String getDataDTDContent(List<CloverETLTable> tables)
           
 String getDataDTDFilename()
           
protected  CloverETLTable getDataDTDTable(String s)
           
 String getDelimiter()
           
 File getOutputDir()
           
protected  String getProlog(List<CloverETLTable> tables)
           
protected  List<String[]> getRows(String content, String[] columns, File file)
           
 String getSchemaFilename()
           
 File getSourceDir()
           
protected  CloverETLTable getTable(File file)
           
protected  String getTableDTDContent(CloverETLTable table)
           
protected  String[] getTables(String contents)
           
protected  String getXml(CloverETLTable table)
           
protected  void handleData()
           
protected  void handleDataDTD()
           
protected  void handleSchema()
           
protected  String parse(String s, String begin, String close)
           
protected  String[] parseAll(String s, String open, String close)
           
protected  List<String> readLines(String s)
           
 void setDatabaseDTDFilename(String databaseDTDFilename)
           
 void setDataDTDFilename(String dataDTDFilename)
           
 void setDelimiter(String delimiter)
           
 void setOutputDir(File outputDir)
           
 void setSchemaFilename(String schemaFilename)
           
 void setSourceDir(File sourceDir)
           
 
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
 

Constructor Detail

ConvertCloverETLMojo

public ConvertCloverETLMojo()
Method Detail

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.