ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: [GUMP] Test Failure - Ant
Date Sun, 05 Jan 2003 13:47:08 GMT
I've fixed one issue in the import checking code but this one remains. 
AFAICS, the import code seems to assume that project's are named, which is 
not mandatory, and will decide that unnamed projects are duplicates.

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:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
> 
> 
> 




--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message