ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gintautas Grigelionis <g.grigelio...@gmail.com>
Subject Re: Use of org.hamcrest.Matchers
Date Sun, 22 Apr 2018 09:43:55 GMT
Hmm... are you sure that Gump has hamcrest-library? By the looks of it, the
classpath contains antlr 3 and bcel 5...

Gintas

2018-04-22 8:45 GMT+00:00 Stefan Bodewig <bodewig@apache.org>:

> Hi
>
> when Apache Gump builds Ant it builds it against Hamcrest 2.x which used
> to work fine as long as we didn't use many matchers. It looks as if one
> of the breaking changes introduced with Hamcrest 2.x is the removal of
> the Matchers class. See
>
> http://vmgump-vm3.apache.org/ant/dist-ant/gump_work/build_
> ant_dist-ant.html
>
> I know we stopped monitoring Gump builds a long time ago and changing
> the code to adapt to breaking changes in other libraries feels strange,
> but would anybod mind if I changed the imports to ones that should work
> with both Hamcrest 1.x and 2.x? I.e. replace
>
> import static org.hamcrest.Matchers.containsString;
>
> with
>
> import static org.hamcrest.core.StringContains.containsString;
>
> ?
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message