DODS 6.5 API

org.enhydra.ant.taskdefs
Class DODS_DOClassFinder

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.enhydra.ant.taskdefs.DODS_DOClassFinder

public class DODS_DOClassFinder
extends org.apache.tools.ant.Task

Author:
Sinisa Milosevic Invoke DODS to generate a list of java classes from a doml file
This taskdef extends Ant's task;
Typically made visible to an Ant build file with the following declaration:
  <taskdef name="dods" classname="org.enhydra.ant.taskdefs.ODS_DOClassFinder"/>
Parameters

 doml       - The doml input file describing data object mapping. Required = Yes
 outdir     - Target for generated classes, expressed as a directory path. Required = Yes

Examples
 <dods doml="${basedir}/discRack.doml"
        outdir="${basedir}/src"/>

Nested Class Summary
static class DODS_DOClassFinder.BooleanAttribute
           
 
Field Summary
protected  java.io.File domlFile
           
 
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
DODS_DOClassFinder()
           
 
Method Summary
 void execute()
          Simply invoke DODS Generator, and then compile the generated files
 void setDoml(java.io.File domlFile)
          Sets the doml descriptor file.
 
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, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domlFile

protected java.io.File domlFile
Constructor Detail

DODS_DOClassFinder

public DODS_DOClassFinder()
Method Detail

execute

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

Throws:
org.apache.tools.ant.BuildException

setDoml

public void setDoml(java.io.File domlFile)
Sets the doml descriptor file.

Parameters:
domlFile - - The doml input file describing data object mapping

DODS 6.5 API