Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-java@g.o
From: Daniel Solano Gómez <gentoo-java@...>
Subject: New Hamcrest ebuilds
Date: Tue, 29 Sep 2009 19:12:55 -0500

I am working on some new ebuilds to update the dev-java/hamcrest package
to version 1.2.  As I do this, I'd like to squash bugs 197354 and
205489.   As I work on this, I have a few questions and I would like to
get input from you.

With regards to bug 205489, I am considering breaking the build into:
  dev-java/hamcrest-core       (already in portage)

Unfortunately, breaking up the ebuild creates a few problems:

1. Unit testing:  Hamcrest uses itself for conducting its unit tests.
As a result, even though it may be possible to segregate the unit tests
for each component so that each ebuild only runs the relevant tests,
there would be a circular dependency problem.  For example, to run the
tests for hamcrest-generator requires hamcrest-library, but to build
hamcrest-library you need hamcrest-generator.

2. Examples: The examples could be packaged as a separate package.
However, since hamcrest-examples would depend on the other packages, it
would make it difficult for them to be included by someone who is
relying on the examples USE flag.

I am considering resolving the above issues by creating a
dev-java/hamcrest package.  This package would have the following

1. It would depend on hamcrest-generator, hamcrest-core,
hamcrest-library, and hamcrest-integration.

2. It would respond to the test and examples USE flags.  In the case of
test, it would run the full test suite for all of the packages.  In the
case of examples, it would build and install hamcrest-examples.jar.
Finally, if neither flag is set, then the ebuild would do nothing.

Does this seem like a good idea?  

If so, would it also make sense for it to use the doc USE flag?
Unfortunately, the various modules all insert classes into the
org.hamcrest package.  As a result, having the disjoint APIs in
different locations isn't entirely user-friendly.  Would it be a good
idea for dev-java/hamcrest to create the API documentation either in
addition to or instead of the various hamcrest-* ebuilds?

Lastly, the upgrade from version 1.1 to 1.2 seemed to have changed the
interface, so JUnit will not build against 1.2.  So I am guessing that
the new builds will have to be slotted and the JUnit build will need to
be updated to reflect this, correct?

I appreciate any input on the above items.  With your feedback, I hope
to post my ebuilds to the Gentoo bugzilla within the next week.


Daniel Solano Gómez

Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Taking Maven completely Off-Line
Next by thread:
Gentoo/Java python scripts and python3
Previous by date:
Re: Any ebuilds for JHotDraw and JStock?
Next by date:
Gentoo/Java python scripts and python3

Updated Mar 06, 2012

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.