org.apache.torque.mojo
Class GenerateTableListingMojo

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

public class GenerateTableListingMojo
extends BaseMojo

Examine the directory that SQL files were generated to and produce a file that contains a listing of any tables that contained data at the point in time the export was run.


Field Summary
 
Fields inherited from class org.apache.torque.mojo.BaseMojo
SKIP_PACKAGING_TYPE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateTableListingMojo()
           
 
Method Summary
protected  void executeMojo()
           
 String getArtifactId()
           
 File getBaseSqlDir()
           
 String getExtension()
           
protected  List<File> getFileListing(File dir)
           
protected  List<String> getLocations(List<String> tableNames)
           
 String getMetaFileSuffix()
           
protected  List<String> getTableNames(List<File> files)
           
 String getTargetDatabase()
           
protected  boolean isSkip(File file, String[] skipTokens)
           
 void setArtifactId(String artifactId)
           
 void setBaseSqlDir(File sqlDir)
           
 void setExtension(String extension)
           
 void setMetaFileSuffix(String metaFileSuffix)
           
 void setTargetDatabase(String targetDatabase)
           
 
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

GenerateTableListingMojo

public GenerateTableListingMojo()
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

getLocations

protected List<String> getLocations(List<String> tableNames)

getFileListing

protected List<File> getFileListing(File dir)

getTableNames

protected List<String> getTableNames(List<File> files)

isSkip

protected boolean isSkip(File file,
                         String[] skipTokens)

getExtension

public String getExtension()

setExtension

public void setExtension(String extension)

getTargetDatabase

public String getTargetDatabase()

setTargetDatabase

public void setTargetDatabase(String targetDatabase)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)

getBaseSqlDir

public File getBaseSqlDir()

setBaseSqlDir

public void setBaseSqlDir(File sqlDir)

getMetaFileSuffix

public String getMetaFileSuffix()

setMetaFileSuffix

public void setMetaFileSuffix(String metaFileSuffix)


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