Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505800 - dev-java/ant-core looks in wrong version tasks directory
Summary: dev-java/ant-core looks in wrong version tasks directory
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-03-25 18:26 UTC by vsync
Modified: 2019-06-30 19:37 UTC (History)
2 users (show)

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


Attachments
patch to "ant" from ant-1.9.2-gentoo.tar.bz2 (ant-tasks-version.patch,590 bytes, patch)
2014-03-25 18:26 UTC, vsync
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vsync 2014-03-25 18:26:20 UTC
Created attachment 373526 [details, diff]
patch to "ant" from ant-1.9.2-gentoo.tar.bz2

According to http://www.gentoo.org/proj/en/java/ant-guide.xml /usr/bin/ant looks in /usr/share/ant/tasks-${PV} for tasklibs to load.  However in ant-core 1.9.2 at least it looks in /usr/share/ant/tasks-1.8.2 rather than /usr/share/ant/tasks-1.9.2.

I've attached a patch which I couldn't get to work in /etc/portage/patches but does make everything work.  Perhaps there is a cleverer way to pick up ${PV} as suggested by the Ant guide?

I found this issue by installing ant-core and ant-junit4 then attempting to run a build which depended on JUnit.  It failed but after making this change to /usr/bin/ant it worked.