ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Use of org.hamcrest.Matchers
Date Sun, 22 Apr 2018 08:45:52 GMT

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

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;


import static org.hamcrest.core.StringContains.containsString;



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message