ant-dev mailing list archives

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16860>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16860
Silent or Debug a single target
------- Additional Comments From ddevienne@lgc.com 2003-02-06 22:29 -------
Note directly related, by to silence task I compose within my own tasks, I
extend them to redirect all or some log() calls to a different level. E.g.
private static class GetUrl
extends Get {
public void log(String msg) {
if (msg != null && (msg.startsWith("Getting:") ||
msg.startsWith("Not modified"))) {
super.log(msg);
}
else {
// Push error messages to verbose level.
log(msg, Project.MSG_VERBOSE);
}
}
}