FileDocCategorySizeDatePackage
AntLikeTasksAtTopLevelTest.javaAPI DocApache Ant 1.702191Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs

AntLikeTasksAtTopLevelTest

public class AntLikeTasksAtTopLevelTest extends org.apache.tools.ant.BuildFileTest
since
Ant 1.6

Fields Summary
Constructors Summary
public AntLikeTasksAtTopLevelTest(String name)

        super(name);
    
Methods Summary
public voidtestAnt()

        try {
            configureProject("src/etc/testcases/taskdefs/toplevelant.xml");
            fail("no exception thrown");
        } catch (BuildException e) {
            assertEquals("ant task at the top level must not invoke its own"
                         + " build file.", e.getMessage());
        }
    
public voidtestAntcall()

        try {
            configureProject("src/etc/testcases/taskdefs/toplevelantcall.xml");
            fail("no exception thrown");
        } catch (BuildException e) {
            assertEquals("antcall must not be used at the top level.",
                         e.getMessage());
        }
    
public voidtestSubant()

        try {
            configureProject("src/etc/testcases/taskdefs/toplevelsubant.xml");
            fail("no exception thrown");
        } catch (BuildException e) {
            assertEquals("subant task at the top level must not invoke its own"
                         + " build file.", e.getMessage());
        }