public class BaseTask extends org.apache.tools.ant.Task implements Reporter
Reporter.SetLocation
Report.Location
Constructor and Description |
---|
BaseTask() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(org.apache.tools.ant.taskdefs.Property property) |
void |
addWsproperty(org.apache.tools.ant.taskdefs.Property property) |
Reporter.SetLocation |
error(String s,
Object... args)
Create an error.
|
Reporter.SetLocation |
exception(Throwable t,
String format,
Object... args)
Dedicated message for an exception.
|
List<String> |
getErrors()
Return the errors.
|
static File |
getFile(File base,
String file) |
Report.Location |
getLocation(String msg)
Return the errors for the given error or warning.
|
List<String> |
getWarnings()
Return the warnings.
|
boolean |
isExceptions() |
boolean |
isOk()
Check if this report has any relevant errors that should make the run
associated with this report invalid.
|
boolean |
isPedantic()
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 |
progress(float progress,
String s,
Object... args)
Deprecated.
Use SLF4J
Logger.info(aQute.libg.slf4j.GradleLogging.LIFECYCLE)
instead.
|
protected boolean |
report() |
protected boolean |
report(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.
|
Reporter.SetLocation |
warning(String s,
Object... args)
Create a warning.
|
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
protected boolean report()
protected boolean report(Reporter reporter)
protected String join(Collection<?> classpath, String string)
public boolean isPedantic()
Reporter
isPedantic
in interface Reporter
public void setPedantic(boolean pedantic)
public void setTrace(boolean trace)
public boolean isTrace()
@Deprecated public void trace(String s, Object... args)
Reporter
public void addProperty(org.apache.tools.ant.taskdefs.Property property)
public void addWsproperty(org.apache.tools.ant.taskdefs.Property property)
public boolean isExceptions()
public void setExceptions(boolean exceptions)
public Report.Location getLocation(String msg)
Report
getLocation
in interface Report
msg
- The messagepublic boolean isOk()
Report
public Reporter.SetLocation exception(Throwable t, String format, Object... args)
Reporter
public Reporter.SetLocation error(String s, Object... args)
Reporter
public List<String> getErrors()
Report
public List<String> getWarnings()
Report
getWarnings
in interface Report
@Deprecated public void progress(float progress, String s, Object... args)
Reporter
public Reporter.SetLocation warning(String s, Object... args)
Reporter
Copyright © 2021 aQute SARL. All rights reserved.