1 18 package org.apache.tools.ant.util; 19 20 import org.apache.tools.ant.Project; 21 import org.apache.tools.ant.Task; 22 23 26 public final class TaskLogger { 27 30 private Task task; 31 32 36 public TaskLogger(final Task task) { 37 this.task = task; 38 } 39 40 44 public void info(final String message) { 45 task.log(message, Project.MSG_INFO); 46 } 47 48 52 public void error(final String message) { 53 task.log(message, Project.MSG_ERR); 54 } 55 56 60 public void warning(final String message) { 61 task.log(message, Project.MSG_WARN); 62 } 63 64 68 public void verbose(final String message) { 69 task.log(message, Project.MSG_VERBOSE); 70 } 71 72 76 public void debug(final String message) { 77 task.log(message, Project.MSG_DEBUG); 78 } 79 } 80 | Popular Tags |