Invokes 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 <javac> task; refer to 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:
domlfile - The doml input file describing data object mapping. Required = Yes.
outputDir - Target for generated classes, expressed as a directory path. Required = Yes.
force - Forces DODS always to regenerate source files. Possible values: ("true", "false"(default)). Required = No.
action - Name of Ant task from generate.xml. Required = No.
templateDir - Name of folder for template set for generating java code, expressed as a directory path. Required = No.
templateSet - Template set for generating java code. Required = No.
confDir - Path to custom configuration folder (If the path is set to any other path than default (offered), in the application's configuration file shoul be set parameter:
DatabaseManager.ConfigurationDir
to new path of the custom configuration folder). Required = No.
database - Sets database vendor for generating sql. Required = No.
html - Indicates DODS to generate html documentation from .doml file. Possible values: ("true", "false"(default)). Required = No.
pdf - Indicates DODS to generate pdf documentation from .doml file. Possible values: ("true", "false"(default)). Required = No.
xmi - Indicates DODS to generate xmi documentation from .doml file. Possible values: ("true", "false"(default)). Required = No.
ptl - Indicates DODS to generate ptl (Rational Rose) documentation from .doml file. Possible values: ("true", "false"(default)). Required = No.
action parameters:
without parameters - to create all sql files and java classes and to compile them.
dods:build_all - to create all sql files and java classes.
dods:sql - to create only sql files.
dods:java -to create only java files and to compile them.
dods:javaNoCompile -To create only java files and not to compile them.
dods:noCompile -To create SQL files and java files and not to compile them.
dods:build_all_split - to create all sql files and java classes and to compile them. SQL files will be divided into separate files using SQLSplitter.
dods:sqlsplit - to create only sql files and separate them in different files using SQLSplitter.
dods:noCompileSplit - To create SQL files and separate sql commands using SQLSplitter and java files and not to compile them.
dods:generatorOff - to disable generating and compiling of java source code, for generating documentation only (you stil need to set documentation property: html, pdf, ptl, xmi).
templateset parameters:
standard - generate standard java code.
<user defined> - any user defined template set.
Example:
<dods doml="${basedir}/discRack.doml"
outputDir="${basedir}/src"
templateSet="standard"/>