org.apache.torque.mojo
Class ConvertSQLMojo

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

public class ConvertSQLMojo
extends org.apache.maven.plugin.AbstractMojo

Examine SQL files and convert them to always use the delimiter / on it's own line. Convert any lines ending with ; to use a / on it's own line.


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ConvertSQLMojo()
           
 
Method Summary
protected  void convert(File file)
           
protected  void convert(List<File> files)
           
 void execute()
           
protected  String getConvertedLine(String line)
           
 String getEncoding()
           
 String getExcludes()
           
protected  List<File> getFiles()
           
 String getIncludes()
           
protected  List<String> getLiquibaseTokens()
           
 String getNewDelimiter()
           
 String getOldDelimiter()
           
 File getOutputDir()
           
protected  String getRelativePath(File dir, File file)
           
 File getSourceDir()
           
 boolean isSkipIrrelevantLiquibaseMetadataLines()
           
protected  boolean isSkipLine(String line)
           
 void setEncoding(String encoding)
           
 void setExcludes(String excludes)
           
 void setIncludes(String includes)
           
 void setNewDelimiter(String newDelimiter)
           
 void setOldDelimiter(String oldDelimiter)
           
 void setOutputDir(File outputDir)
           
 void setSkipIrrelevantLiquibaseMetadataLines(boolean skipIrrelevantLiquibaseMetadataLines)
           
 void setSourceDir(File inputDir)
           
 
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

ConvertSQLMojo

public ConvertSQLMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

convert

protected void convert(List<File> files)
                throws IOException
Throws:
IOException

getLiquibaseTokens

protected List<String> getLiquibaseTokens()

isSkipLine

protected boolean isSkipLine(String line)

getRelativePath

protected String getRelativePath(File dir,
                                 File file)
                          throws IOException
Throws:
IOException

convert

protected void convert(File file)
                throws IOException
Throws:
IOException

getConvertedLine

protected String getConvertedLine(String line)

getFiles

protected List<File> getFiles()
                       throws IOException
Throws:
IOException

getSourceDir

public File getSourceDir()

setSourceDir

public void setSourceDir(File inputDir)

getOutputDir

public File getOutputDir()

setOutputDir

public void setOutputDir(File outputDir)

getIncludes

public String getIncludes()

setIncludes

public void setIncludes(String includes)

getExcludes

public String getExcludes()

setExcludes

public void setExcludes(String excludes)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getOldDelimiter

public String getOldDelimiter()

setOldDelimiter

public void setOldDelimiter(String oldDelimiter)

getNewDelimiter

public String getNewDelimiter()

setNewDelimiter

public void setNewDelimiter(String newDelimiter)

isSkipIrrelevantLiquibaseMetadataLines

public boolean isSkipIrrelevantLiquibaseMetadataLines()

setSkipIrrelevantLiquibaseMetadataLines

public void setSkipIrrelevantLiquibaseMetadataLines(boolean skipIrrelevantLiquibaseMetadataLines)


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