Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489008 - dev-java/ant-core-1.9.2 wrong ant task dir
Summary: dev-java/ant-core-1.9.2 wrong ant task dir
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 13:14 UTC by Georg Goeri
Modified: 2024-03-10 21:33 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Goeri 2013-10-22 13:14:05 UTC
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
Comment 1 Gabriel Marcano 2017-11-17 15:07:37 UTC
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?
Comment 2 William L. Thomson Jr. 2017-11-18 01:37:12 UTC
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
Comment 3 Volkmar W. Pogatzki 2024-03-10 21:33:11 UTC
Old version gone. Closing.