After upgrading to ant 1.9.2 it is not able to find the junit task anymore. The ant launcher (/usr/bin/ant) scans the wrong dir for ant-task ("usr/share/ant/tasks-1.8.2") Fixed to "usr/share/ant/tasks-1.9.2" gets it going again Reproducible: Always Steps to Reproduce: 1.emerge ant 1.9.2 2.run build.xml with junit task Actual Results: Problem: failed to create task or type junit Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found. This looks like one of Ant's optional components. Action: Check that the appropriate optional JAR exists in -/usr/share/ant-core/lib -/home/jgrnt/.ant/lib -a directory added on the command line with the -lib argument Expected Results: Should execute junit
This is still a problem. Moreover, it seems that ANT_HOME in /usr/bin/ant is either wrong or something in how ant is installed is wrong, since it was pointing to /usr/share/ant-core instead of /usr/share/ant, where the latter had most of the ant optional packages installed. The lib jar files for the tasks were being searched for in the ANT_HOME directory. Should /usr/share/ant-core and /usr/share/ant be merged?
All that is left over legacy cruft really. The tasks are in ant, so that is just the script failing. The old one is still using dummy ebuild/tasks. Ant is likely to be updated/addressed soon as part of Java 9 work. I would assume this to be addressed then. No ETA
Old version gone. Closing.