com.lutris.ant.taskdefs
Class Jddic

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.MatchingTask
                    |
                    +--com.lutris.ant.taskdefs.Jddic
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class Jddic
extends org.apache.tools.ant.taskdefs.MatchingTask

Invoke the Jddic compiler to generate Java code from markup files.
Typically made visible to an Ant build file with the following declaration:

<taskdef name="jddic" classname="com.lutris.ant.taskdefs.Jddic"/>

Parameters


 destdir      - The destination directory root for compiled classes.
 srcdir       - The source directory root.
 verbose      - Displays the Jddic command and all of the arguments.
 keep         - If true, keep the Java files generated by Jddic.
 javasorsdir  - The destination directory for generated .java files.
 force        - If true, build allways .class files.
 classpath    - The CLASSPATH for javac.
 exedir       - The directory for java.


Inner Class Summary
static class Jddic.BooleanAttribute
           
 
Field Summary
protected  java.lang.String classPath
          Set the classpath for the Jddic compiler.
protected  org.apache.tools.ant.types.Commandline cmdl
           
protected  java.io.File destDir
          The destination directory into which the generated classes are written.
protected  java.lang.String destDirName
          The name of destination directory into which the generated classes are written.
protected  boolean forceBuild
          Force Jddic to always re-process the .jhtml code (or not)
protected  boolean iskeep
          Specified whether to keep the intermediate .java files.
protected  java.io.File javaDir
          Set the directory containing the java VM executable files.
protected  java.lang.String javaDirName
          The name of destination directory into which the generated java files
protected  java.io.File javaOutDir
          The destination directory into which the generated java files
protected  java.lang.String javaOutDirName
          Set the name of destination directory into which the generated java files
protected static java.lang.String logHdr
           
protected  int logLevel
           
protected  java.lang.String os
           
protected  java.io.File sorsDir
          Set the source directory containing the HTML files.
protected  java.lang.String sorsDirName
          Set the name of source directory containing the HTML files.
protected  int upToDate
           
protected  boolean verbose
          Run Jddic in verbose mode (-verbose flag)
 
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
Jddic()
           
 
Method Summary
 void execute()
          Required by ant framework - implements execute() in Task.
 void setClasspath(java.lang.String classpath)
          Set the classpath for the Jddic compiler.
 void setDestdir(java.lang.String dirname)
          Set the destination directory into which the generated classes are written
 void setExedir(java.lang.String javaexedirname)
          Set the directory containing the java VM executable files.
 void setForce(java.lang.String force)
          Force Jddic to always re-process the .jhtml code (or not)
 void setJavasorsdir(java.lang.String dirname)
          Set the destination directory into which the generated java files
 void setKeep(java.lang.String keep)
          Specified whether to keep the intermediate .java files.
 void setSrcdir(java.lang.String sorsdirname)
          Set the source directory containing the HTML files.
 void setVerbose(Jddic.BooleanAttribute _verbose)
          Run Jddic in verbose mode (-verbose flag)
 
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, markInvalid, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
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

logHdr

protected static java.lang.String logHdr

destDirName

protected java.lang.String destDirName
The name of destination directory into which the generated classes are written.

destDir

protected java.io.File destDir
The destination directory into which the generated classes are written.

javaOutDirName

protected java.lang.String javaOutDirName
Set the name of destination directory into which the generated java files

javaOutDir

protected java.io.File javaOutDir
The destination directory into which the generated java files

iskeep

protected boolean iskeep
Specified whether to keep the intermediate .java files.

sorsDirName

protected java.lang.String sorsDirName
Set the name of source directory containing the HTML files.

sorsDir

protected java.io.File sorsDir
Set the source directory containing the HTML files.

javaDirName

protected java.lang.String javaDirName
The name of destination directory into which the generated java files

javaDir

protected java.io.File javaDir
Set the directory containing the java VM executable files.

classPath

protected java.lang.String classPath
Set the classpath for the Jddic compiler.

cmdl

protected org.apache.tools.ant.types.Commandline cmdl

verbose

protected boolean verbose
Run Jddic in verbose mode (-verbose flag)

forceBuild

protected boolean forceBuild
Force Jddic to always re-process the .jhtml code (or not)

logLevel

protected int logLevel

upToDate

protected int upToDate

os

protected java.lang.String os
Constructor Detail

Jddic

public Jddic()
Method Detail

setDestdir

public void setDestdir(java.lang.String dirname)
Set the destination directory into which the generated classes are written

setJavasorsdir

public void setJavasorsdir(java.lang.String dirname)
Set the destination directory into which the generated java files

setKeep

public void setKeep(java.lang.String keep)
Specified whether to keep the intermediate .java files.

setSrcdir

public void setSrcdir(java.lang.String sorsdirname)
Set the source directory containing the HTML files.

setExedir

public void setExedir(java.lang.String javaexedirname)
Set the directory containing the java VM executable files.

setClasspath

public void setClasspath(java.lang.String classpath)
Set the classpath for the Jddic compiler.

setForce

public void setForce(java.lang.String force)
Force Jddic to always re-process the .jhtml code (or not)

setVerbose

public void setVerbose(Jddic.BooleanAttribute _verbose)
Run Jddic in verbose mode (-verbose flag)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Required by ant framework - implements execute() in Task.
Overrides:
execute in class org.apache.tools.ant.Task