Package aQute.bnd.ant

Class BaseTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
aQute.bnd.ant.BaseTask
All Implemented Interfaces:
aQute.service.reporter.Report, aQute.service.reporter.Reporter, Cloneable
Direct Known Subclasses:
BndTask, DeployTask, EclipseTask, ExpandPropertiesTask, PackageTask, PrepareTask, ProjectBuildOrderTask, ProjectTask, ReleaseTask, RunBundlesTask, RunconfigToDistributionTask, TestTask, WrapTask

public class BaseTask extends org.apache.tools.ant.Task implements aQute.service.reporter.Reporter
  • Nested Class Summary

    Nested classes/interfaces inherited from interface aQute.service.reporter.Report

    aQute.service.reporter.Report.Location

    Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter

    aQute.service.reporter.Reporter.SetLocation
  • Field Summary

    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
    void
    addProperty(org.apache.tools.ant.taskdefs.Property property)
     
    void
    addWsproperty(org.apache.tools.ant.taskdefs.Property property)
     
    aQute.service.reporter.Reporter.SetLocation
    error(String s, Object... args)
     
    aQute.service.reporter.Reporter.SetLocation
    exception(Throwable t, String format, Object... args)
     
    protected aQute.bnd.build.Project
     
     
    static File
    getFile(File base, String file)
     
    aQute.service.reporter.Report.Location
     
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    protected String
    join(Collection<?> classpath, String string)
     
    void
    progress(float progress, String s, Object... args)
    Deprecated.
    Use SLF4J Logger.info() instead.
    protected boolean
     
    protected boolean
    report(aQute.service.reporter.Reporter reporter)
     
    void
    setExceptions(boolean exceptions)
     
    void
    setPedantic(boolean pedantic)
     
    void
    setTrace(boolean trace)
     
    protected List<String>
    split(String dependsOn, String string)
     
    void
    trace(String s, Object... args)
    Deprecated.
    Use SLF4J Logger.debug instead.
    aQute.service.reporter.Reporter.SetLocation
    warning(String s, Object... args)
     

    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, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaseTask

      public BaseTask()
  • Method Details

    • report

      protected boolean report()
    • report

      protected boolean report(aQute.service.reporter.Reporter reporter)
    • getFile

      public static File getFile(File base, String file)
    • split

      protected List<String> split(String dependsOn, String string)
    • join

      protected String join(Collection<?> classpath, String string)
    • isPedantic

      public boolean isPedantic()
      Specified by:
      isPedantic in interface aQute.service.reporter.Reporter
    • setPedantic

      public void setPedantic(boolean pedantic)
    • setTrace

      public void setTrace(boolean trace)
    • isTrace

      public boolean isTrace()
    • trace

      @Deprecated public void trace(String s, Object... args)
      Deprecated.
      Use SLF4J Logger.debug instead.
      Specified by:
      trace in interface aQute.service.reporter.Reporter
    • addProperty

      public void addProperty(org.apache.tools.ant.taskdefs.Property property)
    • addWsproperty

      public void addWsproperty(org.apache.tools.ant.taskdefs.Property property)
    • isExceptions

      public boolean isExceptions()
    • setExceptions

      public void setExceptions(boolean exceptions)
    • getLocation

      public aQute.service.reporter.Report.Location getLocation(String msg)
      Specified by:
      getLocation in interface aQute.service.reporter.Report
    • isOk

      public boolean isOk()
      Specified by:
      isOk in interface aQute.service.reporter.Report
    • exception

      public aQute.service.reporter.Reporter.SetLocation exception(Throwable t, String format, Object... args)
      Specified by:
      exception in interface aQute.service.reporter.Reporter
    • error

      public aQute.service.reporter.Reporter.SetLocation error(String s, Object... args)
      Specified by:
      error in interface aQute.service.reporter.Reporter
    • getErrors

      public List<String> getErrors()
      Specified by:
      getErrors in interface aQute.service.reporter.Report
    • getWarnings

      public List<String> getWarnings()
      Specified by:
      getWarnings in interface aQute.service.reporter.Report
    • progress

      @Deprecated public void progress(float progress, String s, Object... args)
      Deprecated.
      Use SLF4J Logger.info() instead.
      Specified by:
      progress in interface aQute.service.reporter.Reporter
    • warning

      public aQute.service.reporter.Reporter.SetLocation warning(String s, Object... args)
      Specified by:
      warning in interface aQute.service.reporter.Reporter
    • getBndProject

      protected aQute.bnd.build.Project getBndProject(File basedir)