1 | void testAnt() {↵ | | 1 | void testSubant() {↵
|
2 | try {↵ | | 2 | try {↵
|
3 | configureProject("src/etc/testcases/taskdefs/toplevelant.xml");↵ | | 3 | configureProject("src/etc/testcases/taskdefs/toplevelsubant.xml");↵
|
4 | fail("no exception thrown");↵ | | 4 | fail("no exception thrown");↵
|
5 | } catch (BuildException e) {↵ | | 5 | } catch (BuildException e) {↵
|
6 | assertEquals("ant task at the top level must not invoke its own"↵ | | 6 | assertEquals("subant task at the top level must not invoke its own"↵
|
7 | + " build file.", e.getMessage());↵ | | 7 | + " build file.", e.getMessage());↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void testSubant() {↵ | | 10 | public void testAntcall() {↵
|
11 | try {↵ | | 11 | try {↵
|
12 | configureProject("src/etc/testcases/taskdefs/toplevelsubant.xml");↵ | | 12 | configureProject("src/etc/testcases/taskdefs/toplevelantcall.xml");↵
|
13 | fail("no exception thrown");↵ | | 13 | fail("no exception thrown");↵
|
14 | } catch (BuildException e) {↵ | | 14 | } catch (BuildException e) {↵
|
15 | assertEquals("subant task at the top level must not invoke its own"↵ | | 15 | assertEquals("antcall must not be used at the top level.",↵
|
16 | + " build file.", e.getMessage());↵ | | 16 | e.getMessage());↵
|
17 | }↵ | | 17 | }↵
|
18 | | | 18 |
|