org.tigris.scarab.actions.setup
Class AntRunner

java.lang.Object
  extended byorg.tigris.scarab.actions.setup.AntRunner

public class AntRunner
extends java.lang.Object

This class is the bridge to ant. Most of the code is derived form the org.apache.ant.Main class, but simplyfied for our purposes. i.e. you can only run one single ant task per call. Also most of the configuration properties available in the original class have been dropped to keep the bridge small. We could have used the ant Main class directly, but i think, having control over what happens here is better (i.e. where does out and err go, how do we log, etc...)

Version:
$Id: AntRunner.java 9325 2004-12-22 22:48:10Z dabbous $
Author:
Hussayn Dabbous

Constructor Summary
AntRunner()
           
 
Method Summary
protected  void addBuildListener(org.apache.tools.ant.Project project)
           
 void execute(java.io.File theBuildFile, java.lang.String theTarget, java.util.Map properties)
          Execute the given target in the given buildFile.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntRunner

public AntRunner()
Method Detail

execute

public void execute(java.io.File theBuildFile,
                    java.lang.String theTarget,
                    java.util.Map properties)
Execute the given target in the given buildFile. If target is null, the default target is executred. theBuildfile must NOT be null. and readable in the current sessoin context. Currently no exception handling. Every Exception is rethrown.

Parameters:
theBuildFile -
theTarget -

addBuildListener

protected void addBuildListener(org.apache.tools.ant.Project project)

main

public static void main(java.lang.String[] args)


Copyright © 2000-2004 Tigris.org. All Rights Reserved.