ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1407166 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyDEMessageLogger.java
Date Thu, 08 Nov 2012 17:03:08 GMT
Author: hibou
Date: Thu Nov  8 17:03:07 2012
New Revision: 1407166

URL: http://svn.apache.org/viewvc?rev=1407166&view=rev
Log:
Don't buffer any error message as we don't know when to call sumupProblems

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyDEMessageLogger.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyDEMessageLogger.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyDEMessageLogger.java?rev=1407166&r1=1407165&r2=1407166&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyDEMessageLogger.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/IvyDEMessageLogger.java
Thu Nov  8 17:03:07 2012
@@ -17,10 +17,14 @@
  */
 package org.apache.ivyde.eclipse;
 
-import org.apache.ivy.util.AbstractMessageLogger;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.ivy.util.Message;
+import org.apache.ivy.util.MessageLogger;
 import org.apache.ivyde.eclipse.ui.console.IvyConsole;
 
-public class IvyDEMessageLogger extends AbstractMessageLogger {
+public class IvyDEMessageLogger implements MessageLogger {
 
     private IvyConsole console;
 
@@ -50,12 +54,72 @@ public class IvyDEMessageLogger extends 
         log(msg, level);
     }
 
-    public void doProgress() {
-        // nothing
+    public void debug(String msg) {
+        log(msg, Message.MSG_DEBUG);
+    }
+
+    public void verbose(String msg) {
+        log(msg, Message.MSG_VERBOSE);
+    }
+
+    public void deprecated(String msg) {
+        log("DEPRECATED: " + msg, Message.MSG_WARN);
+    }
+
+    public void info(String msg) {
+        log(msg, Message.MSG_INFO);
+    }
+
+    public void rawinfo(String msg) {
+        rawlog(msg, Message.MSG_INFO);
+    }
+
+    public void warn(String msg) {
+        log(msg, Message.MSG_WARN);
+    }
+
+    public void error(String msg) {
+        log(msg, Message.MSG_ERR);
+    }
+
+    public void sumupProblems() {
+        // we don't buffer anything, nothing to sumup
+    }
+
+    public void clearProblems() {
+        // do nothing
+    }
+
+    public List getProblems() {
+        return Collections.emptyList();
+    }
+
+    public List getErrors() {
+        return Collections.emptyList();
+    }
+
+    public List getWarns() {
+        return Collections.emptyList();
+    }
+
+    public void progress() {
+        // do nothing
+    }
+
+    public void endProgress() {
+        // do nothing
+    }
+
+    public void endProgress(String msg) {
+        // do nothing
+    }
+
+    public boolean isShowProgress() {
+        return false;
     }
 
-    public void doEndProgress(String msg) {
-        // nothing
+    public void setShowProgress(boolean progress) {
+        // do nothing
     }
 
 }



Mime
View raw message