Class JRBaseAntTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
net.sf.jasperreports.ant.JRBaseAntTask
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
Direct Known Subclasses:
JRAntApiWriteTask, JRAntCompileTask, JRAntDecompileTask, JRAntUpdateTask, JRAntXmlExportTask

public class JRBaseAntTask extends org.apache.tools.ant.taskdefs.MatchingTask
Base class for JasperReports built-in Ant task implementations.
Author:
Teodor Danciu (teodord@users.sourceforge.net)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected int
     

    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected boolean
     
    void
    setThreads(String threadsOption)
    Sets the number of threads to use for executing the task on multiple files in parallel.

    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, execute, 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 Details

  • Constructor Details

    • JRBaseAntTask

      public JRBaseAntTask()
  • Method Details

    • error

      protected void error()
    • isError

      protected boolean isError()
    • setThreads

      public void setThreads(String threadsOption)
      Sets the number of threads to use for executing the task on multiple files in parallel.

      The value should be a positive integer or a float number representing a multiplier of the number of CPU cores, when followed by the letter C. For example, 2C means twice the number of CPU cores, while 0.5C means half the number of CPU cores. The default is 1.