use of org.revapi.AnalysisResult in project revapi by revapi.
the class RevapiTask method execute.
@Override
public void execute() throws BuildException {
Revapi revapi = initRevapi();
AnalysisContext context = initAnalysisContext(revapi);
log("Running API analysis");
log("Old API: " + context.getOldApi().toString());
log("New API: " + context.getNewApi().toString());
try (AnalysisResult res = revapi.analyze(context)) {
res.throwIfFailed();
} catch (Exception e) {
throw new BuildException("API analysis failed.", e);
}
}
Aggregations