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:
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.


Field Summary
static String BRLFILEEXTENSION
           
static String DROOLSPACKAGEEXTENSION
           
static String DSLFILEEXTENSION
           
static String DSLRFILEEXTENSION
           
static String PACKAGEBINFORMAT
           
static String PACKAGEBINTYPE
           
static String RULEFLOWFILEEXTENSION
           
static String RULEFLOWMODELFILEEXTENSION
           
static String XLSFILEEXTENSION
           
static 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
 void addConfiguredSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
           
 org.apache.tools.ant.types.Path createClasspath()
          Adds a path to the classpath.
 void execute()
          Task's main method
 String getBinformat()
           
 String getBintype()
           
 String getVerbose()
           
 void setBinformat(String binformat)
           
 void setBintype(String bintype)
           
 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(File directory)
          Source directory to read DRL files from
 void setToFile(File toFile)
          File to serialize the rulebase to
 void setVerbose(String verbose)
           
 
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 String BRLFILEEXTENSION

XMLFILEEXTENSION

public static String XMLFILEEXTENSION

RULEFLOWMODELFILEEXTENSION

public static String RULEFLOWMODELFILEEXTENSION

RULEFLOWFILEEXTENSION

public static String RULEFLOWFILEEXTENSION

DSLFILEEXTENSION

public static String DSLFILEEXTENSION

DSLRFILEEXTENSION

public static String DSLRFILEEXTENSION

XLSFILEEXTENSION

public static String XLSFILEEXTENSION

DROOLSPACKAGEEXTENSION

public static String DROOLSPACKAGEEXTENSION

PACKAGEBINFORMAT

public static String PACKAGEBINFORMAT

PACKAGEBINTYPE

public static String PACKAGEBINTYPE
Constructor Detail

DroolsCompilerAntTask

public DroolsCompilerAntTask()
Method Detail

setSrcDir

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

Parameters:
directory -

setToFile

public void setToFile(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

addConfiguredSysproperty

public void addConfiguredSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)

setBinformat

public void setBinformat(String binformat)

getBinformat

public String getBinformat()

getBintype

public String getBintype()

setBintype

public void setBintype(String bintype)

setVerbose

public void setVerbose(String verbose)

getVerbose

public String getVerbose()


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.