getProject().log(RetroWeaverTask.this, msg, Project.MSG_INFO);
}
public void weavingError(String msg) {
getProject().log(RetroWeaverTask.this, msg, Project.MSG_ERR);
throw new ExitStatusException("weaving error", 1);
}
public void weavingPath(String pPath) {
if (itsVerbose)
getProject().log(RetroWeaverTask.this, "Weaving " + pPath,
Project.MSG_INFO);
}
});
if (verifyClasspath != null && doVerify()) {
List<String> refPath = new ArrayList<String>();
for (String pathItem : verifyClasspath.list()) {
refPath.add(pathItem);
}
if (itsDestDir != null) {
refPath.add(itsDestDir.getPath());
}
RefVerifier rv = new RefVerifier(itsVersion, new EmptyVisitor(), refPath, new VerifierListener() {
public void verifyPathStarted(String msg) {
getProject().log(RetroWeaverTask.this, msg,
Project.MSG_INFO);
}
public void verifyClassStarted(String msg) {
if (itsVerbose)
getProject().log(RetroWeaverTask.this, msg,
Project.MSG_INFO);
}
public void acceptWarning(String msg) {
getProject().log(RetroWeaverTask.this, msg,
Project.MSG_WARN);
}
public void displaySummary(int warningCount) {
String msg = "Verification complete, " + warningCount
+ " warning(s).";
getProject().log(RetroWeaverTask.this, msg,
Project.MSG_WARN);
if (itsFailOnError)
throw new ExitStatusException(Integer
.toString(warningCount)
+ " warning(s)", 1);
}
});
weaver.setVerifier(rv);