Package aQute.bnd.ant
Class BaseTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
aQute.bnd.ant.BaseTask
- Direct Known Subclasses:
BndTask
,DeployTask
,EclipseTask
,ExpandPropertiesTask
,PackageTask
,PrepareTask
,ProjectBuildOrderTask
,ProjectTask
,ReleaseTask
,RunBundlesTask
,RunconfigToDistributionTask
,TestTask
,WrapTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
private static final org.slf4j.Logger
(package private) final AntMessages
(package private) String
(package private) boolean
(package private) final List<org.apache.tools.ant.taskdefs.Property>
(package private) ReporterAdapter
(package private) boolean
(package private) final List<org.apache.tools.ant.taskdefs.Property>
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(org.apache.tools.ant.taskdefs.Property property) void
addWsproperty
(org.apache.tools.ant.taskdefs.Property property) Create an error.Dedicated message for an exception.protected Project
getBndProject
(File basedir) Return the errors.static File
getLocation
(String msg) Return the errors for the given error or warning.Return the warnings.boolean
boolean
isOk()
Check if this report has any relevant errors that should make the run associated with this report invalid.boolean
The provider of the reporter wants pedantic reporting, meaning every possible warning should be reported.boolean
isTrace()
protected String
join
(Collection<?> classpath, String string) void
Deprecated.Use SLF4J Logger.info() instead.protected boolean
report()
protected boolean
void
setExceptions
(boolean exceptions) void
setPedantic
(boolean pedantic) void
setTrace
(boolean trace) void
Deprecated.Use SLF4J Logger.debug instead.Create a warning.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
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
reporter
ReporterAdapter reporter -
errors
-
warnings
-
progress
-
pedantic
boolean pedantic -
trace
boolean trace -
onfail
String onfail -
properties
-
workspaceProps
-
messages
-
exceptions
boolean exceptions
-
-
Constructor Details
-
BaseTask
public BaseTask()
-
-
Method Details
-
report
protected boolean report() -
report
-
getFile
-
split
-
join
-
isPedantic
public boolean isPedantic()Description copied from interface:Reporter
The provider of the reporter wants pedantic reporting, meaning every possible warning should be reported.- Specified by:
isPedantic
in interfaceReporter
- Returns:
- if this is a pedantic reporter.
-
setPedantic
public void setPedantic(boolean pedantic) -
setTrace
public void setTrace(boolean trace) -
isTrace
public boolean isTrace() -
trace
Deprecated.Use SLF4J Logger.debug instead.Description copied from interface:Reporter
Create a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method. -
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
Description copied from interface:Report
Return the errors for the given error or warning. Can return null.- Specified by:
getLocation
in interfaceReport
- Parameters:
msg
- The message- Returns:
- null or the location of the message
-
isOk
public boolean isOk()Description copied from interface:Report
Check if this report has any relevant errors that should make the run associated with this report invalid. I.e. if this returns false then the run should be disregarded. -
exception
Description copied from interface:Reporter
Dedicated message for an exception. -
error
Description copied from interface:Reporter
Create an error. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method. -
getErrors
Description copied from interface:Report
Return the errors. This list must not be changed and may be immutable. -
getWarnings
Description copied from interface:Report
Return the warnings. This list must not be changed and may be immutable.- Specified by:
getWarnings
in interfaceReport
- Returns:
- the warnings
-
progress
Deprecated.Use SLF4J Logger.info() instead.Description copied from interface:Reporter
Create a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method. -
warning
Description copied from interface:Reporter
Create a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method. -
getBndProject
-