Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76534 - dev-java/commons-net-1.3.0 emerge fails when using junit
Summary: dev-java/commons-net-1.3.0 emerge fails when using junit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-03 10:06 UTC by Kenyon Ralph
Modified: 2005-01-11 09:27 UTC (History)
0 users

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 Kenyon Ralph 2005-01-03 10:06:14 UTC
# emerge -vp commons-net

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-java/commons-net-1.3.0  -doc +jikes +junit 0 kB


# emerge -v commons-net
....
internal-test:
    [mkdir] Created dir: /var/tmp/portage/commons-net-1.3.0/work/commons-net-1.3.0-src/target/test-reports

BUILD FAILED
/var/tmp/portage/commons-net-1.3.0/work/commons-net-1.3.0-src/build.xml:93: Could not create task or type of type: junit.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
 - You have misspelt 'junit'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
     and needs to be declared using <taskdef>.
 - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 1 second

!!! ERROR: dev-java/commons-net-1.3.0 failed.
!!! Function src_compile, Line 40, Exitcode 1
!!! died on ant

Build succeeds doing USE="-junit".  May be the same/similar to Bug 76485.
Comment 1 Kenyon Ralph 2005-01-04 12:55:46 UTC
This works now, re-emerging with +junit.  Maybe it only fails if commons-net isn't already installed.  Might as well close this bug if nobody else reports any problems.
Comment 2 Kenyon Ralph 2005-01-04 12:57:14 UTC
Oh, didn't notice that I can close it myself.  See Comment #1.
Comment 3 Greg 2005-01-11 02:07:20 UTC
I still seem to have trouble with this. Even after emerging successfully with junit disabled after re-emering i get the same error with junit enabled.
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-11 02:18:51 UTC
i'll fix this later today. i've currently no possiblity to do that.
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-11 09:27:57 UTC
fixed version now in portage. please do 'emerge sync' again and try it again. thanks for the report.