public class BaseTask extends org.apache.tools.ant.Task implements Reporter
Reporter.SetLocationReport.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, setTaskTypeprotected boolean report()
protected boolean report(Reporter reporter)
protected String join(Collection<?> classpath, String string)
public boolean isPedantic()
ReporterisPedantic in interface Reporterpublic void setPedantic(boolean pedantic)
public void setTrace(boolean trace)
public boolean isTrace()
@Deprecated public void trace(String s, Object... args)
Reporterpublic 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)
ReportgetLocation in interface Reportmsg - The messagepublic boolean isOk()
Reportpublic Reporter.SetLocation exception(Throwable t, String format, Object... args)
Reporterpublic Reporter.SetLocation error(String s, Object... args)
Reporterpublic List<String> getErrors()
Reportpublic List<String> getWarnings()
ReportgetWarnings in interface Report@Deprecated public void progress(float progress, String s, Object... args)
Reporterpublic Reporter.SetLocation warning(String s, Object... args)
ReporterCopyright © 2019 aQute SARL. All rights reserved.