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
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.
Thanks for the quick fix, it's in portage now. Cheers
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.
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.