Hi Robert,thanks for the hint. I always thought that the nice this about groovy is that a == b is the same as a null-safe a.equals(b). If I got it corrently what you are telling then it seems not to make any difference:
[INFO] The post-build script did not succeed. assert 'no-one'.equals(flattendP
roject.repositories.repository.id) | | | | | false | | | no-one | | no-onehttp://localhost:54391 | no-onehttp://localhost:54391 4.0.0org.codehaus.mojo.flatten.itsexternal-parent0.0.1-SNAPSHOTApache License, Version 2.0http://www.apache.org/licenses/LICENSE-2.0org.s
pringframeworkspring-core4.0.5.RELEASEcompileno-onehttp://localhost:54391I also copied the no-one string from the resulting .flattened-pom.xml in case it only looks like ascii but contains some wild unicode character. So I am loosing my sanity here...
Cheers Jörg Am 04.09.2014 22:07, schrieb Robert Scholte:
Maybe the difference between String and GString[1] equals should always work Robert [1] http://groovy.codehaus.org/Strings+and+GStringOp Thu, 04 Sep 2014 21:59:54 +0200 schreef Jörg Hohwiller <jo...@j-hohwiller.de>:Hi there, I am not a groovy expert and need some help. An IT of flatten-maven-plugin fails with this error: assert 'no-one' == flattendProject.repositories.repository.id | | | | | | | | | no-one | | | no-onehttp://localhost:61379 | | no-onehttp://localhost:61379 | 4.0.0org.codehaus.mojo.flatten.itsexternal-parent0.0.1-SNAPSHOTApache License, Version2.0http://www.apache.org/licenses/LICENSE-2.0org.springframeworkspring-core4.0.5.RELEASEcompileno-onehttp://localhost:61379false atorg.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:399)IMHO "no-one" should be equal to "no-one". Also I assumed that the hole story of groovy was to make things easy so hopefully I am not checking the String "no-one" being equals to the DOM node <id>no-none</id> what would explain why this is false but it seems to work in other setups so there must be something I am missing here. I would love to complete this last issue so we can pull out the next release of the plugin. Any ideas would be very appreciated. Thanks in advance Jörg--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
smime.p7s
Description: S/MIME Cryptographic Signature