Author: hibou
Date: Sat Nov 10 14:06:03 2012
New Revision: 1407814
URL: http://svn.apache.org/viewvc?rev=1407814&view=rev
Log:
If there is a missing report, launch a full resolve
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolver.java
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolver.java
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolver.java?rev=1407814&r1=1407813&r2=1407814&view=diff
==============================================================================
---
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolver.java
(original)
+++
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/resolve/IvyResolver.java
Sat Nov 10 14:06:03 2012
@@ -210,7 +210,13 @@ public class IvyResolver {
File report =
ivy.getResolutionCacheManager().getConfigurationResolveReportInCache(
IvyClasspathUtil.buildResolveId(useExtendedResolveId, md),
confs[i]);
- if (report.exists()) {
+ IvyDEMessage.debug("Cheking resolve report at " + report);
+ if (!report.exists()) {
+ IvyDEMessage.info("The resolve report for the configuration "
+ confs[i]
+ + " was not found. Falling back by doing a resolve
again.");
+ return doResolve(ivy, md);
+ } else {
+ IvyDEMessage.verbose("Resolve report found, parsing it");
// found a report, try to parse it.
try {
XmlReportParser parser = new XmlReportParser();