org.apache.torque.mojo
Class ConvertSQLMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
ConvertSQLMojo
public ConvertSQLMojo()
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-2013 The Kuali Foundation. All Rights Reserved.