Enhydra 5.1 API

org.enhydra.ant.taskdefs
Class SQLSplitterTask

java.lang.Object
  |
  +--org.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
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class SQLSplitterTask
extends org.apache.tools.ant.taskdefs.Javac

Invoke DODS to generate a set of java classes from a doml file
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 task; refer to that documentation for parameters that affect compilation.
Typically made visible to an Ant build file with the following declaration:

  <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

Examples
 <sqlsplitter dir="${project.root}/sql"
        resultsql="${project.root}/Test.sql"/>


Nested Class Summary
static class SQLSplitterTask.BooleanAttribute
           
 
Nested classes 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
           
 
Fields inherited from class org.apache.tools.ant.taskdefs.Javac
compileList, failOnError, listFiles
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
SQLSplitterTask()
           
 
Method Summary
 void execute()
          Simply invoke DODS Generator, and then compile the generated files
 void setDir(java.io.File sqlDir)
          Sets the doml descriptor file.
 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
 
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, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, 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, setVerbose
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

protected java.io.File dir

resultsql

protected java.io.File resultsql

forceBuild

protected boolean forceBuild
Constructor Detail

SQLSplitterTask

public SQLSplitterTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Simply invoke DODS Generator, and then compile the generated files

Overrides:
execute in class org.apache.tools.ant.taskdefs.Javac
Throws:
org.apache.tools.ant.BuildException

setDir

public void setDir(java.io.File sqlDir)
Sets the doml descriptor file.


setResultsql

public void setResultsql(java.io.File sqlBase)
The destination directory into which the generated sources are written


setForce

public void setForce(java.lang.String force)
Force DODS to always be regenerated source files

Parameters:
force - - Set to "true" or "false"

Enhydra 5.1 API