Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 505800

Summary: dev-java/ant-core looks in wrong version tasks directory
Product: Gentoo Linux Reporter: vsync <vsync>
Component: [OLD] JavaAssignee: Java team <java>
Status: UNCONFIRMED ---    
Severity: normal CC: kingjon3377, vsync
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: patch to "ant" from ant-1.9.2-gentoo.tar.bz2

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 /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.