1 11 package org.eclipse.pde.internal.build.tasks; 12 13 import java.io.PrintStream ; 14 import org.apache.tools.ant.*; 15 import org.eclipse.core.runtime.IStatus; 16 import org.eclipse.core.runtime.Status; 17 import org.eclipse.osgi.util.NLS; 18 import org.eclipse.pde.internal.build.BundleHelper; 19 import org.eclipse.pde.internal.build.IPDEBuildConstants; 20 21 26 public class SimpleBuildLogger implements BuildLogger, IPDEBuildConstants { 27 28 32 public void buildFinished(BuildEvent event) { 33 Throwable exception = event.getException(); 34 35 if(exception != null) { 36 String message = NLS.bind(TaskMessages.error_runningRetrieve, exception.getMessage()); 37 BundleHelper.getDefault().getLog().log(new Status(IStatus.ERROR, PI_PDEBUILD, message)); 38 } 39 } 40 41 public void setEmacsMode(boolean emacsMode) { 42 } 44 45 public void setErrorPrintStream(PrintStream err) { 46 } 48 49 public void setMessageOutputLevel(int level) { 50 } 52 53 public void setOutputPrintStream(PrintStream output) { 54 } 56 57 public void buildStarted(BuildEvent event) { 58 } 60 61 public void messageLogged(BuildEvent event) { 62 } 64 65 public void targetFinished(BuildEvent event) { 66 } 68 69 public void targetStarted(BuildEvent event) { 70 } 72 73 public void taskFinished(BuildEvent event) { 74 } 76 77 public void taskStarted(BuildEvent event) { 78 } 80 } 81 | Popular Tags |