Index: src/java/org/jayasoft/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java =================================================================== --- src/java/org/jayasoft/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java (revision 605) +++ src/java/org/jayasoft/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java (working copy) @@ -135,6 +135,7 @@ } protected IStatus run(IProgressMonitor monitor) { + IvyPlugin.ensureConsoleInitialized(); Message.info("resolving dependencies of "+_ivyXmlFile); _monitor = monitor; final IStatus[] status = new IStatus[1]; @@ -455,8 +456,7 @@ return _job; } } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); + IvyPlugin.log(IStatus.ERROR, "Errors occurred trying to run Ivy resolve job", e); return null; } } @@ -542,8 +542,7 @@ new IClasspathContainer[] {IvyClasspathContainer.this}, null); } catch (JavaModelException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + IvyPlugin.log(IStatus.ERROR, "Errors occurred trying to update classpath container", e); } } }); @@ -590,7 +589,7 @@ } } } catch (JavaModelException e) { - e.printStackTrace(); + IvyPlugin.log(IStatus.ERROR, "Errors occurred trying to run Ivy resolve job", e); } } @@ -612,7 +611,7 @@ } } } catch (JavaModelException e) { - e.printStackTrace(); + IvyPlugin.log(IStatus.ERROR, "Errors occurred trying to run Ivy resolve job", e); } } Index: src/java/org/jayasoft/ivyde/eclipse/IvyPlugin.java =================================================================== --- src/java/org/jayasoft/ivyde/eclipse/IvyPlugin.java (revision 605) +++ src/java/org/jayasoft/ivyde/eclipse/IvyPlugin.java (working copy) @@ -207,15 +207,25 @@ public static Ivy getIvy(IJavaProject javaProject) { + ensureConsoleInitialized(); Ivy ivy = refreshIvyConfiguration(javaProject, getIvyconfURL(javaProject)); setIvyContext(javaProject); return ivy == null ? new Ivy() : ivy; } - + + public static void ensureConsoleInitialized() { + // Make sure current thread's IvyContext has the console + if (IvyContext.getContext().getMessageImpl()==null) { + IvyContext.getContext().setMessageImpl(getDefault().getConsole()); + } + } + public static void setIvyContext(IJavaProject javaProject) { IvyConfig ic = (IvyConfig)_ivysByProject.get(javaProject); if (ic != null) { IvyContext.setContext(ic.context); + } else { + ensureConsoleInitialized(); } }