Version: 1.1.1

org.biomoby.service.dashboard
Class SimpleAnt

java.lang.Object
  extended by org.biomoby.service.dashboard.SimpleAnt

public class SimpleAnt
extends Object

A wrapper that invokes Ant on a build.xml file in the current directory. It does not upport any command-line options. The main method is startAnt(java.lang.String[], java.util.Properties) that takes an array of Ant targets, and optionally a list of additional properties.

This is a simplified version of the original Ant's org.apache.tools.ant.Main file. It is used in the Biomoby Dashboard project.

Version:
$Id: SimpleAnt.java,v 1.7 2008/03/02 12:45:26 senger Exp $
Author:
Martin Senger

Constructor Summary
SimpleAnt()
          Default constructor.
 
Method Summary
 void addBuildListener(org.apache.tools.ant.BuildListener listener)
           
 void removeBuildListener(org.apache.tools.ant.BuildListener listener)
           
 void setAllowInput(boolean enabled)
           
 void setMsgOutputLevel(int level)
           
 void startAnt(String[] newTargets, Properties additionalUserProperties)
          Start Ant to execute given targets, possibly using additional properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAnt

public SimpleAnt()
Default constructor.

Method Detail

setAllowInput

public void setAllowInput(boolean enabled)

setMsgOutputLevel

public void setMsgOutputLevel(int level)

addBuildListener

public void addBuildListener(org.apache.tools.ant.BuildListener listener)

removeBuildListener

public void removeBuildListener(org.apache.tools.ant.BuildListener listener)

startAnt

public void startAnt(String[] newTargets,
                     Properties additionalUserProperties)
              throws org.apache.tools.ant.BuildException
Start Ant to execute given targets, possibly using additional properties.

Throws:
org.apache.tools.ant.BuildException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010