org.drools.contrib
Class DroolsCompilerAntTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.drools.contrib.DroolsCompilerAntTask
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

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

An ant task to allow rulebase compilation and serialization during a build.

Author:
etirelli

Field Summary
static java.lang.String BRLFILEEXTENSION
           
static java.lang.String DSLFILEEXTENSION
           
static java.lang.String PACKAGEBINFORMAT
           
static java.lang.String RULEFLOWFILEEXTENSION
           
static java.lang.String XLSFILEEXTENSION
           
static java.lang.String XMLFILEEXTENSION
           
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
DroolsCompilerAntTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Adds a path to the classpath.
 void execute()
          Task's main method
 java.lang.String getBinformat()
           
 void setBinformat(java.lang.String binformat)
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          The classpath to use when compiling the rulebase
 void setClasspathref(org.apache.tools.ant.types.Reference r)
          Classpath to use, by reference, when compiling the rulebase
 void setSrcDir(java.io.File directory)
          Source directory to read DRL files from
 void setToFile(java.io.File toFile)
          File to serialize the rulebase to
 
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BRLFILEEXTENSION

public static java.lang.String BRLFILEEXTENSION

XMLFILEEXTENSION

public static java.lang.String XMLFILEEXTENSION

RULEFLOWFILEEXTENSION

public static java.lang.String RULEFLOWFILEEXTENSION

DSLFILEEXTENSION

public static java.lang.String DSLFILEEXTENSION

XLSFILEEXTENSION

public static java.lang.String XLSFILEEXTENSION

PACKAGEBINFORMAT

public static java.lang.String PACKAGEBINFORMAT
Constructor Detail

DroolsCompilerAntTask

public DroolsCompilerAntTask()
Method Detail

setSrcDir

public void setSrcDir(java.io.File directory)
Source directory to read DRL files from

Parameters:
directory -

setToFile

public void setToFile(java.io.File toFile)
File to serialize the rulebase to

Parameters:
toFile -

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
The classpath to use when compiling the rulebase

Parameters:
classpath -

setClasspathref

public void setClasspathref(org.apache.tools.ant.types.Reference r)
Classpath to use, by reference, when compiling the rulebase

Parameters:
a - reference to an existing classpath

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Adds a path to the classpath.

Returns:
created classpath

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Task's main method

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

setBinformat

public void setBinformat(java.lang.String binformat)

getBinformat

public java.lang.String getBinformat()