1 package eu.simuline.m2latex.antTask;
2
3 import eu.simuline.m2latex.core.LogWrapper;
4
5 import org.apache.tools.ant.Project;
6
7
8
9
10
11
12
13
14
15
16 public class AntLogWrapper implements LogWrapper {
17
18 private final Project project;
19
20 public AntLogWrapper(Project project) {
21 this.project = project;
22 }
23
24 public void error(String msg) {
25 this.project.log("[error] " + msg, Project.MSG_ERR);
26 }
27
28 public void warn(String msg) {
29 this.project.log("[warning] " + msg, Project.MSG_WARN);
30 }
31
32 public void warn(String msg, Throwable thrw) {
33 this.project.log("[warning] " + msg, thrw, Project.MSG_WARN);
34 }
35
36 public void info(String msg) {
37 this.project.log("[info] " + msg, Project.MSG_INFO);
38 }
39
40
41 public void debug(String msg) {
42 this.project.log("[debug] " + msg, Project.MSG_DEBUG);
43 }
44
45
46
47
48
49
50 }