|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.apache.tools.ant.taskdefs.Javac
org.enhydra.ant.taskdefs.SQLSplitterTask
public class SQLSplitterTask
The files will only be regenerated/compiled if the date on the doml file is newer than at least one of the generated files
This taskdef extends Ant's Typically made visible to an Ant build file with the following declaration:
Examples
<taskdef name="dods" classname="org.enhydra.ant.taskdefs.Dods"/>
Parameters
dir - The base SQLSplitter directory. Required = Yes
resultsql - Absolute path and base name of created sql files. Required = Yes
force - Force SQLSplitter to always be regenerated source files. Required = No
<sqlsplitter dir="${project.root}/sql"
resultsql="${project.root}/Test.sql"/>
Nested Class Summary | |
---|---|
static class |
SQLSplitterTask.BooleanAttribute
|
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Javac |
---|
org.apache.tools.ant.taskdefs.Javac.ImplementationSpecificArgument |
Field Summary | |
---|---|
protected java.io.File |
dir
|
protected boolean |
forceBuild
|
protected java.io.File |
resultsql
|
protected boolean |
splitsqlprimary
|
Fields inherited from class org.apache.tools.ant.taskdefs.Javac |
---|
compileList, failOnError, listFiles |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
SQLSplitterTask()
|
Method Summary | |
---|---|
void |
execute()
Simply invoke DODS Generator, and then compile the generated files |
void |
setDir(java.io.File sqlDir)
|
void |
setForce(java.lang.String force)
Force DODS to always be regenerated source files |
void |
setResultsql(java.io.File sqlBase)
The destination directory into which the generated sources are written |
void |
setSplitsqlprimary(java.lang.String splitPrimary)
Force DODS to split PRIMARY KEY statments from CREATE TABLE in separate file during of SQLSpliter task. |
Methods inherited from class org.apache.tools.ant.taskdefs.Javac |
---|
checkParameters, compile, createBootclasspath, createClasspath, createCompilerArg, createExtdirs, createSourcepath, createSrc, getBootclasspath, getClasspath, getCompiler, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTempdir, getVerbose, isForkedJavac, isJdkCompiler, recreateSrc, resetFileLists, scanDir, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setCompiler, setDebug, setDebugLevel, setDepend, setDeprecation, setDestdir, setEncoding, setExecutable, setExtdirs, setFailonerror, setFork, setIncludeantruntime, setIncludejavaruntime, setListfiles, setMemoryInitialSize, setMemoryMaximumSize, setNowarn, setOptimize, setProceed, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setTempdir, setVerbose |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File dir
protected java.io.File resultsql
protected boolean forceBuild
protected boolean splitsqlprimary
Constructor Detail |
---|
public SQLSplitterTask()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.Javac
org.apache.tools.ant.BuildException
public void setDir(java.io.File sqlDir)
sqlDir
- New sql dir.public void setResultsql(java.io.File sqlBase)
sqlBase
- - Target for generated classes, expressed as a directory
pathpublic void setSplitsqlprimary(java.lang.String splitPrimary)
splitPrimary
- - Set to "true" or "false"public void setForce(java.lang.String force)
force
- - Set to "true" or "false"
|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |