Methods Summary |
---|
public void | buildFinished(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
Logger log = Logger.getLogger(Project.class.getName());
if (event.getException() == null) {
log.info("Build finished.");
} else {
log.error("Build finished with error.", event.getException());
}
}
|
public void | buildStarted(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
Logger log = Logger.getLogger(Project.class.getName());
log.info("Build started.");
}
|
public void | messageLogged(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
Object categoryObject = event.getTask();
if (categoryObject == null) {
categoryObject = event.getTarget();
if (categoryObject == null) {
categoryObject = event.getProject();
}
}
Logger log
= Logger.getLogger(categoryObject.getClass().getName());
switch (event.getPriority()) {
case Project.MSG_ERR:
log.error(event.getMessage());
break;
case Project.MSG_WARN:
log.warn(event.getMessage());
break;
case Project.MSG_INFO:
log.info(event.getMessage());
break;
case Project.MSG_VERBOSE:
log.debug(event.getMessage());
break;
case Project.MSG_DEBUG:
log.debug(event.getMessage());
break;
default:
log.error(event.getMessage());
break;
}
}
|
public void | targetFinished(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
String targetName = event.getTarget().getName();
Logger cat = Logger.getLogger(Target.class.getName());
if (event.getException() == null) {
cat.info("Target \"" + targetName + "\" finished.");
} else {
cat.error("Target \"" + targetName
+ "\" finished with error.", event.getException());
}
}
|
public void | targetStarted(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
Logger log = Logger.getLogger(Target.class.getName());
log.info("Target \"" + event.getTarget().getName() + "\" started.");
}
|
public void | taskFinished(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
Task task = event.getTask();
Logger log = Logger.getLogger(task.getClass().getName());
if (event.getException() == null) {
log.info("Task \"" + task.getTaskName() + "\" finished.");
} else {
log.error("Task \"" + task.getTaskName()
+ "\" finished with error.", event.getException());
}
}
|
public void | taskStarted(org.apache.tools.ant.BuildEvent event){@inheritDoc}.
if (initialized) {
Task task = event.getTask();
Logger log = Logger.getLogger(task.getClass().getName());
log.info("Task \"" + task.getTaskName() + "\" started.");
}
|