org.milyn.test.ant
Class AntRunner

java.lang.Object
  extended by org.milyn.test.ant.AntRunner

public class AntRunner
extends Object

AntRunner test utility. tom.fennelly@gmail.com


Constructor Summary
AntRunner(InputStream antScript, String... properties)
          Public constructor.
AntRunner(String antScript, String... properties)
          Public constructor.
 
Method Summary
 AntRunner run(String target)
          Run a target on the Ant Script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntRunner

public AntRunner(String antScript,
                 String... properties)
          throws IOException
Public constructor.

The antScript parameter is a filename on the classpath, relative to the caller Class. AntRunner (this) uses the current Thread's Stack Trace to determine the calling Class.

Parameters:
antScript - The Ant script to be executed. Classpath resource relative to the caller Class.
properties - Optional Ant properties.
Throws:
IOException - Error reading Ant Script.

AntRunner

public AntRunner(InputStream antScript,
                 String... properties)
          throws IOException
Public constructor.

Parameters:
antScript - The Ant script to be executed.
properties - Optional Ant properties.
Throws:
IOException - Error reading Ant Script.
Method Detail

run

public AntRunner run(String target)
Run a target on the Ant Script.

Parameters:
target - The target to run.
Returns:
this class instance.


Copyright © 2014. All Rights Reserved.