Costin, I think you are going to need a bit of code to handle unnamed projects and all the associated generated magic properties.
Conor
[junit] Testcase: testCalledFromTopLevelAnt(org.apache.tools.ant.TopLevelTaskTest): FAILED [junit] expected:<...> but was:<Duplicated project name in import. Project null defined first in /home/rubys/jakarta/jakarta-ant/src/etc/testcases/core/topleveltasks/toplevelant.xml and again in /home/rubys/jakarta/jakarta-ant/src/etc/testcases/core/topleveltasks/notarget.xml...> [junit] junit.framework.ComparisonFailure: expected:<...> but was:<Duplicated project name in import. Project null defined first in /home/rubys/jakarta/jakarta-ant/src/etc/testcases/core/topleveltasks/toplevelant.xml and again in /home/rubys/jakarta/jakarta-ant/src/etc/testcases/core/topleveltasks/notarget.xml...> [junit] at junit.framework.Assert.assertEquals(Assert.java:81) [junit] at junit.framework.Assert.assertEquals(Assert.java:87) [junit] at org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:108) [junit] at org.apache.tools.ant.TopLevelTaskTest.testCalledFromTopLevelAnt(TopLevelTaskTest.java:79) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at junit.framework.TestCase.runTest(TestCase.java:154) [junit] at junit.framework.TestCase.runBare(TestCase.java:127) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:118) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) [junit] at junit.framework.TestSuite.run(TestSuite.java:203) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:323) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:809) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:552) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:528) [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:185) [junit] at org.apache.tools.ant.Task.perform(Task.java:348) [junit] at org.apache.tools.ant.Target.execute(Target.java:309) [junit] at org.apache.tools.ant.Target.performTasks(Target.java:336) [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1244) [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1188) [junit] at org.apache.tools.ant.Main.runBuild(Main.java:614) [junit] at org.apache.tools.ant.Main.start(Main.java:197) [junit] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED file:///home/rubys/jakarta/jakarta-ant/build.xml:1469: Test org.apache.tools.ant.TopLevelTaskTest failed
Total time: 3 minutes 20 seconds
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>