hardayal / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

Hamcrest in JMock on Android #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have got JMock working Android however I had to repackage the hamcrest 
libraries.

The error you get in Android ADK is:-
Error generating final archive: duplicate entry: LICENSE.txt

Work around:
unzip hamcrest-core-1.1.jar
unzip hamcrest-library-1.1.jar in the same directory.

This the second unzip overwrites MANIFEST.MF and LICENCE.TXT.

zip ../hamcrest-all-1.1.jar

Original issue reported on code.google.com by oliver....@gmail.com on 12 Oct 2010 at 3:32

GoogleCodeExporter commented 8 years ago
Hey, I got a similar problem, but not with JMock though.

I tried to use hamcrest-core and hamcrest-library on Android, but the Android 
project failed to build, same error message as the above.

The solution is to either remove the LICENCE.txt files, or put them inside each 
of the META-INF folder in the jar.

Keep up the good work guys, hamcrest is cool!

Original comment by llaec...@gmail.com on 22 Jan 2011 at 5:40

GoogleCodeExporter commented 8 years ago
Could the next maven release of Hamcrest include this alteration to the 
location of the LICENCE.txt file? I'm getting the clash problem with both 
version 1.2.1 & 1.3RC2 - this is trying to use 'hamcrest-library',  which of 
course includes hamcrest-core as a dependency - all I want are some nice 
marchers beyond the core ones! 

Original comment by roberto....@gmail.com on 18 Feb 2011 at 7:52

GoogleCodeExporter commented 8 years ago
Super-awesomely, it looks like the next version of the maven-android-plugin 
(v2.9.0, as yet unreleased) will have duplicate-detection-and-removal, allowing 
builds to proceed even with the collisions in hamcrest-core & hamcrest-library:

http://code.google.com/p/maven-android-plugin/issues/detail?id=123

Original comment by roberto....@gmail.com on 21 Feb 2011 at 11:55

GoogleCodeExporter commented 8 years ago
tagging 

Original comment by t.denley on 12 May 2012 at 10:45

GoogleCodeExporter commented 8 years ago
I've just moved the LICENSE.txt file into the META-INF directory of the 
hamcrest jars. See commit 
https://github.com/hamcrest/JavaHamcrest/commit/9e2a15913122e216752280c0f89f8215
aaa23b43

This will not take effect until the next release.

Original comment by t.denley on 29 Jul 2012 at 9:18