1 23 24 package com.rift.coad.lib.thirdparty.ant; 26 27 import org.apache.tools.ant.BuildEvent; 29 import org.apache.tools.ant.BuildListener; 30 31 36 public class AntListener implements BuildListener { 37 38 private String message = new String (); 40 41 42 45 public AntListener() { 46 } 47 48 49 52 public void buildFinished(BuildEvent buildEvent) { 53 } 55 56 59 public void buildStarted(BuildEvent buildEvent) { 60 } 62 63 64 67 public void messageLogged(BuildEvent buildEvent) { 68 this.message += buildEvent.getMessage(); 69 } 70 71 72 75 public void targetFinished(BuildEvent buildEvent) { 76 } 78 79 80 83 public void targetStarted(BuildEvent buildEvent) { 84 } 86 87 88 91 public void taskFinished(BuildEvent buildEvent) { 92 } 94 95 96 99 public void taskStarted(BuildEvent buildEvent) { 100 } 102 103 104 107 public String getMessage() { 108 return message; 109 } 110 } 111 | Popular Tags |