abstract class AntTestBase
extends TestCase
runAntTest(String)
to run an Ant target. If
the Ant sub-process cannot be started of if it returns an exit code that
indicates error, the test fails.
AntTestBase makes the following assumptions about its run-time environment:
ant
. That is, ant is
on the current PATH.REVIEW: SWZ: 3/11/2006: This class is not portable to Windows. Potential solutions: 1) Check for Windows via System properties and invoke "command.com ant.bat [target]" (or whatever's necessary) when the OS is Windows. 2) Require Ant libraries be on the classpath and invoke Ant's API directly. This is preferred, since it should be OS neutral.
Constructor and Description |
---|
AntTestBase(String name)
Creates an AntTestBase.
|
AntTestBase(String name)
name
- Test nameprotected void runAntTest(String target) throws IOException, InterruptedException
target
- Name of ant targetIOException
InterruptedException