Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35992 - Gentoo-version of Ant lacks basic optional modules like junit
Summary: Gentoo-version of Ant lacks basic optional modules like junit
Status: RESOLVED DUPLICATE of bug 35921
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-17 05:39 UTC by Stig E Sandø
Modified: 2005-07-17 13:06 UTC (History)
1 user (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 Stig E Sandø 2003-12-17 05:39:33 UTC
Ant has several optional tasks, but one of the most basic and central to java-development, the junit test-framework, is missing completely from the optional.jar in gentoo.  It really should be there. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Adrian Almenar 2003-12-19 21:55:24 UTC
Moving this again to java@gentoo.org, so everyone out there can help.
Comment 2 Bert Van Vreckem 2004-01-11 03:16:35 UTC
I don't think I agree. Indeed, junit is a must-have, but in the end, it's totally independent from ant. Additionally, emerging junit when ant was already installed should create a symbolic link in the ${ANT_HOME}/lib directory, thus enabling you to use the junit optional task.

However, this does not appear to be working properly (see e.g. http://forums.gentoo.org/viewtopic.php?t=29411&highlight=ant+junit,
http://forums.gentoo.org/viewtopic.php?t=92756&highlight=ant+junit,
http://forums.gentoo.org/viewtopic.php?t=34106&highlight=ant+junit, and
http://forums.gentoo.org/viewtopic.php?t=59185&highlight=ant+junit)

According to one of the cited threads, when you execute
  ACCEPT_KEYWORDS="~x86" emerge ant junit
JUnit should be enabled in ant.

To summarise: the issue is not that Ant doesn't include must-have optional tasks. However, when supported utilities (such as junit, jdepend, etc.) are installed, Ant does not automatically make the associated optional tasks available.
Comment 3 Adrian Almenar 2004-01-16 21:43:19 UTC

*** This bug has been marked as a duplicate of 35921 ***