com.xpn.xwiki.test
Class AntBuildListener

java.lang.Object
  extended by com.xpn.xwiki.test.AntBuildListener
All Implemented Interfaces:
java.util.EventListener, org.apache.tools.ant.BuildListener

public class AntBuildListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener

Allow logging Ant messages to the console. This is used by the XWikiTestSetup class which uses Ant tasks to start/stop XWiki.


Constructor Summary
AntBuildListener(boolean isDebugModeOn)
           
 
Method Summary
 void buildFinished(org.apache.tools.ant.BuildEvent event)
           
 void buildStarted(org.apache.tools.ant.BuildEvent event)
           
 void messageLogged(org.apache.tools.ant.BuildEvent event)
           
 void targetFinished(org.apache.tools.ant.BuildEvent event)
           
 void targetStarted(org.apache.tools.ant.BuildEvent event)
           
 void taskFinished(org.apache.tools.ant.BuildEvent event)
           
 void taskStarted(org.apache.tools.ant.BuildEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntBuildListener

public AntBuildListener(boolean isDebugModeOn)
Parameters:
isDebugModeOn - if true then display debug messages too on the console
Method Detail

buildStarted

public void buildStarted(org.apache.tools.ant.BuildEvent event)
Specified by:
buildStarted in interface org.apache.tools.ant.BuildListener

buildFinished

public void buildFinished(org.apache.tools.ant.BuildEvent event)
Specified by:
buildFinished in interface org.apache.tools.ant.BuildListener

targetStarted

public void targetStarted(org.apache.tools.ant.BuildEvent event)
Specified by:
targetStarted in interface org.apache.tools.ant.BuildListener

targetFinished

public void targetFinished(org.apache.tools.ant.BuildEvent event)
Specified by:
targetFinished in interface org.apache.tools.ant.BuildListener

taskStarted

public void taskStarted(org.apache.tools.ant.BuildEvent event)
Specified by:
taskStarted in interface org.apache.tools.ant.BuildListener

taskFinished

public void taskFinished(org.apache.tools.ant.BuildEvent event)
Specified by:
taskFinished in interface org.apache.tools.ant.BuildListener

messageLogged

public void messageLogged(org.apache.tools.ant.BuildEvent event)
Specified by:
messageLogged in interface org.apache.tools.ant.BuildListener


Copyright © 2004-2008 XWiki. All Rights Reserved.