/* * MyBuildListener.java * * Created on 11 May 2004, 01:04 */ package com.myapp; import java.util.HashMap; import java.util.Hashtable; import org.apache.tools.ant.BuildListener; import org.apache.tools.ant.RuntimeConfigurable; import org.apache.tools.ant.Task; /** * * @author pj97932 */ public class MyBuildListener implements BuildListener { public MyBuildListener() { } public void buildFinished(org.apache.tools.ant.BuildEvent event) { } public void buildStarted(org.apache.tools.ant.BuildEvent event) { } public void messageLogged(org.apache.tools.ant.BuildEvent event) { } public void targetFinished(org.apache.tools.ant.BuildEvent event) { } public void targetStarted(org.apache.tools.ant.BuildEvent event) { } public void taskFinished(org.apache.tools.ant.BuildEvent event) { } public void taskStarted(org.apache.tools.ant.BuildEvent event) { Task t = event.getTask(); if (t.getTaskName().equals("jasper2")) { RuntimeConfigurable rc = t.getRuntimeConfigurableWrapper(); Hashtable am = rc.getAttributeMap(); event.getProject().log(" uriroot " + event.getProject().replaceProperties((String)am.get("uriroot"))); } } }