Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51099 - Junit tests fail when emerging dev-java/commons-cli
Summary: Junit tests fail when emerging dev-java/commons-cli
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 16:15 UTC by Keith Burch
Modified: 2004-07-16 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
updated patch file with additional changes to fix the build.xlm (new-commons-cli-1.0-gentoo.diff,4.30 KB, patch)
2004-05-15 05:26 UTC, Keith Burch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Burch 2004-05-14 16:15:10 UTC
During the emerge of dev-java/commons-cli the compilation of the unit tests fail due to a missing classpath directive.  Looking at the patch wich is applied for the commons-cli build.xml file, it was missing the changes applied for the classpath during the compile-test target.

Reproducible: Always
Steps to Reproduce:
1. include junit in the USE flags
2. emerge dev-java/commons-cli
3. test target fails during the build

Actual Results:  
I lost the output which was generated when looking for a fix



Expected Results:  
completed the unit tests successfully
Comment 1 Keith Burch 2004-05-15 05:26:04 UTC
Created attachment 31467 [details, diff]
updated patch file with additional changes to fix the build.xlm

Created a new patch file with the additional changes necessary to prevent the
test -compile target from failing.  I made the same type of changes as already
present elsewhere in the current patch file.
Comment 2 Chris Aniszczyk (RETIRED) gentoo-dev 2004-05-18 19:27:50 UTC
Thanks for the quick fix, it's in portage now.

Cheers
Comment 3 Fong Chih 2004-07-10 22:59:44 UTC
When trying to emerge commons-cli-1.0-r4 with junit-3.8.1 and ant-1.5.4-r1, I still get the error.

BUILD FAILED
file:/var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/build.xml:54: Could not create task or type of type: junit.
Comment 4 Matt McKenzie 2004-07-16 19:42:16 UTC
Solution: re-emerge dev-java/ant. I had the exact same problem -

BUILD FAILED
file:/var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/build.xml:54: Could not create task or type of type: junit.

For some reason dev-java/ant didn't have support built in for junit. Re-emerging dev-java/ant fixed it. The junit tests now run fine and commons-cli installs.