in src/main/java/org/apache/easyant/tasks/PluginUpdateChecker.java [43:77]
public void execute() throws BuildException {
PluginService pluginService = getProject().getReference(
EasyAntMagicNames.PLUGIN_SERVICE_INSTANCE);
if (moduleIvy == null) {
String moduleIvyProperty = getProject().getProperty(EasyAntMagicNames.EASYANT_FILE);
if (moduleIvyProperty != null) {
moduleIvy = new File(moduleIvyProperty);
} else {
moduleIvy = new File(getProject().getBaseDir(), EasyAntConstants.DEFAULT_BUILD_MODULE);
}
if (moduleIvy.exists() && overrideModuleAnt == null) {
overrideModuleAnt = new File(moduleIvy.getParent(), EasyAntConstants.DEFAULT_OVERRIDE_BUILD_FILE);
}
}
if (moduleAnt == null) {
String moduleAntProperty = getProject().getProperty(MagicNames.ANT_FILE);
if (moduleAntProperty != null) {
moduleAnt = new File(moduleAntProperty);
} else {
moduleAnt = new File(getProject().getBaseDir(), EasyAntConstants.DEFAULT_BUILD_FILE);
}
}
try {
EasyAntReport easyantReport = pluginService.generateEasyAntReport(moduleIvy, moduleAnt, overrideModuleAnt);
log("Plugin updates available :");
for (ImportedModuleReport importedModuleReport : easyantReport.getImportedModuleReports()) {
checkNewRevision(importedModuleReport.getModuleRevisionId());
}
if (!pluginUpdateDetected) {
log("\tAll plugins are up to date");
}
} catch (Exception e) {
throw new BuildException(e);
}
}