org.objectweb.jorm.util.lib
Class AntJormParser

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended byorg.objectweb.jorm.util.lib.AntJormParser
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

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


Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
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
AntJormParser()
           
 
Method Summary
 org.apache.tools.ant.types.DTDLocation createDTD()
          Create a DTD location record.
 void execute()
          execute method of the Ant task
 void initJormCompiler()
           
 void setJormConf(java.lang.String s)
          It assigns the jorm configuration file.
 void setLogConf(java.lang.String s)
          It assigns the jorm configuration file.
 void setOtherPdFiles(org.apache.tools.ant.types.Path cp)
          It assigns the classpath where jorm can load .pd files which are needed (the dependecies).
 void setOtherPdFilesRef(org.apache.tools.ant.types.Reference r)
           
 void setPdDir(java.io.File d)
          It assigns the directory name where the include and exclude clause has been based.
 void setProjectName(java.lang.String s)
          It assigns the project name which must be used.
 void setVerbose(boolean verbose)
          It assigns the verbose mode to the jorm generator.
 
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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, 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
 

Constructor Detail

AntJormParser

public AntJormParser()
Method Detail

setPdDir

public void setPdDir(java.io.File d)
It assigns the directory name where the include and exclude clause has been based. (REQUIRED)


setOtherPdFiles

public void setOtherPdFiles(org.apache.tools.ant.types.Path cp)
It assigns the classpath where jorm can load .pd files which are needed (the dependecies). (OPTIONAL: default value is the PdDir)


setOtherPdFilesRef

public void setOtherPdFilesRef(org.apache.tools.ant.types.Reference r)

createDTD

public org.apache.tools.ant.types.DTDLocation createDTD()
Create a DTD location record. This stores the location of a DTD. The DTD is identified by its public Id. The location may either be a file location or a resource location.

Returns:
the DTD location object to be configured by Ant

setJormConf

public void setJormConf(java.lang.String s)
It assigns the jorm configuration file. (REQUIRED)

Parameters:
s - the string representation of the configuration file.

setLogConf

public void setLogConf(java.lang.String s)
It assigns the jorm configuration file. (REQUIRED)

Parameters:
s - the string representation of the configuration file.

setProjectName

public void setProjectName(java.lang.String s)
It assigns the project name which must be used. This parameter can be override for a class if you use a local jorm configuration file which defines also the property. (OPTIONAL default value = "" empty string)


setVerbose

public void setVerbose(boolean verbose)
It assigns the verbose mode to the jorm generator. This parameter can be override for a class if you use a local jorm configuration file which defines also the property. (OPTIONAL the default value is false)


initJormCompiler

public void initJormCompiler()
                      throws PException
Throws:
PException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
execute method of the Ant task

Throws:
org.apache.tools.ant.BuildException