http://lsd.student.utwente.nl/gump/ant/work/build_ant_test-ant.html
Testsuite: org.apache.tools.ant.ProjectTest
Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 0.301 sec
Testcase: testDuplicateTargets(org.apache.tools.ant.ProjectTest):
FAILED
Should throw BuildException because: Duplicate target
junit.framework.AssertionFailedError: Should throw BuildException because:
Duplicate target
at junit.framework.Assert.fail(Assert.java:47)
at
oata.BuildFileTest.expectSpecificBuildException(BuildFileTest.java:277)
at oata.BuildFileTest.expectBuildException(BuildFileTest.java:62)
at oata.ProjectTest.testDuplicateTargets(ProjectTest.java:211)
We should get a consensus on how to handle multiple definitions of a target
inside a buildfile.
1. multiple targets defined in ONE buildfile is an error, while definitions
via <import> is correct
--> modify the test (more tests)
--> modify the sources
2. multiple target-defintions are not allowed in general
--> modify the sources
3. multiple target-defintions ARE allowed in general
--> modify the test (expect a simple log statement)
I would prefer (1), because it gives you the ability of overriding targets
with use of <import>,
but gives you a hint if you do that inside one file.
Jan
> -----Original Message-----
> From: Gump Integration Build [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 20, 2004 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: [EMAIL PROTECTED]: ant/test-ant failed
>
>
> To whom it may engage...
>
> This is an automated request, but not an unsolicited one. For
> help understanding the request please visit
> http://jakarta.apache.org/gump/nagged.html, and/or contact
> [EMAIL PROTECTED]
>
> Project test-ant has an issue affecting it's community
> integration, and has been outstanding for 2 runs. The current
> state is 'Failed', for reason 'Build Failed'
>
> Full details are available at:
> http://lsd.student.utwente.nl/gump/ant/test-ant.html, however
> some snippets follow:
>
> - - - - - -- -- ------------------------------------ G U M P
>
> Gump provided these annotations:
>
> - Error - Failed with reason build failed
>
>
> - - - - - -- -- ------------------------------------ G U M P
> Gump performed this work:
>
> Work Name: build_ant_test-ant (Type: Build)
> State: Failed
> Elapsed: 0 hours, 6 minutes, 4 seconds
> Command Line: java -Djava.awt.headless=true
> -Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImp
> l.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar:/da
> ta3/gump/xml-commons/java/external/build/xml-apis.jar:/data3/g
> ump/xml-xalan/java/build/xalan-unbundled.jar
> org.apache.tools.ant.Main -Dbuild.clonevm=true
> -Dgump.merge=/data3/gump/gump/work/merge.xml
> -Dbuild.sysclasspath=only -Dtest.haltonfailure=false
> -Dant.home=/data3/gump/ant/dist -Dhave.cvs=true run-tests
> [Working Directory: /data3/gump/ant]
> ---------------------------------------------
>
> [junit] Testsuite:
> org.apache.tools.ant.util.regexp.JakartaRegexpRegexpTest
> [junit] Tests run: 15, Failures: 0, Errors: 0, Time
> elapsed: 0.046 sec
>
>
> [junit] Testsuite:
> org.apache.tools.ant.util.regexp.Jdk14RegexpMatcherTest
> [junit] Tests run: 12, Failures: 0, Errors: 0, Time
> elapsed: 0.006 sec
>
>
> [junit] Testsuite:
> org.apache.tools.ant.util.regexp.Jdk14RegexpRegexpTest
> [junit] Tests run: 15, Failures: 0, Errors: 0, Time
> elapsed: 0.008 sec
>
>
> [junit] Testsuite: org.apache.tools.mail.MailMessageTest
> [junit] Tests run: 7, Failures: 0, Errors: 0, Time
> elapsed: 0.38 sec
>
>
> [junit] Testsuite: org.apache.tools.tar.TarEntryTest
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time
> elapsed: 0.011 sec
>
>
> [junit] Testsuite: org.apache.tools.tar.TarRoundTripTest
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time
> elapsed: 0.08 sec
>
>
> [junit] Testsuite: org.apache.tools.zip.AsiExtraFieldTest
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time
> elapsed: 0.022 sec
>
>
> [junit] Testsuite: org.apache.tools.zip.ExtraFieldUtilsTest
> [junit] Tests run: 2, Failures: 0, Errors: 0, Time
> elapsed: 0.025 sec
>
>
> [junit] Testsuite: org.apache.tools.zip.ZipEntryTest
> [junit] Tests run: 2, Failures: 0, Errors: 0, Time
> elapsed: 0.027 sec
>
>
> [junit] Testsuite: org.apache.tools.zip.ZipLongTest
> [junit] Tests run: 4, Failures: 0, Errors: 0, Time
> elapsed: 0.011 sec
>
>
> [junit] Testsuite: org.apache.tools.zip.ZipShortTest
> [junit] Tests run: 4, Failures: 0, Errors: 0, Time
> elapsed: 0.012 sec
>
>
>
> BUILD FAILED
> /data3/gump/ant/build.xml:1565: At least one test has failed.
>
> Total time: 6 minutes 3 seconds
> ---------------------------------------------
>
>
>
>
> To subscribe to this information via syndicated feeds:
> RSS: http://lsd.student.utwente.nl/gump/ant/test-ant.rss |
> Atom: http://lsd.student.utwente.nl/gump/ant/test-ant.atom
>
> --
> Gump http://jakarta.apache.org/gump
> [lsd]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>