When commons-io prepares to run its tests, it runs the target 'check-availability' to determine whether or not jUnit is available. From what I can tell, this test succeeds if ${junit.jar} exists. Unfortunately, this test looks for the file '/usr/local/junit3.8.1/junit.jar'. When it isn't found, it attempts to download it from the web. On my system (with firewalls and proxies in place) this download fails, and when Ant tries to run exec.test, I get the following exception: Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/TestRunner Caused by: java.lang.ClassNotFoundException: junit.textui.TestRunner ... To me, the easiest resolution to this problem is to add '-Djunit.jar="$(java-pkg_getjars junit)"' to the test eant call. With this added, everything works well. However, I don't know if this is the most appropriate method to resolve the problem. I will attach a patch to update the ebuild as described above.
Created attachment 199780 [details] Patch to update ebuild so that it can find junit.jar
Thanks for reporting the test failure, and your fix! Assigning to java maintainers.
+ 18 May 2015; Patrice Clement <monsieurp@gentoo.org> -commons-io-1.4.ebuild, + commons-io-2.4.ebuild: + Remove old. + No longer in the tree. Consider using version 2.0.1 (current stable) or 2.4. Thank you.