Hi Benson,

The pom contains the following configuration:
<scmCommentPrefix>ABCD-1234${line.separator}</scmCommentPrefix>

line.separator is an environment variable, at least on Windows and I assume on Linux too.
It contains \r and/or \n
It looks like Groovy on Mac translates this to File.separator.
Is there a way to define this character on a Mac?
If this is different from line.separator we need a special profile for it, and adjust the corresponding FAQ

-Robert

Op Sun, 12 Aug 2012 21:44:05 +0200 schreef Benson Margulies <[email protected]>:

~/asf/mvn/release/ M2_HOME=/opt/apache-maven-3.0.4
/opt/apache-maven-3.0.4/bin/mvn install -Prun-its

...

[ERROR] The following builds failed:
[ERROR] *  projects/prepare/MRELEASE-156/pom.xml

build.log:


Running post-build script:
/Users/benson/asf/mvn/release/maven-release-plugin/target/it/projects/prepare/MRELEASE-156/verify.groovy
java.lang.AssertionError: Expression: (1 ==
releaseProperties.getText().count((scm.commentPrefix=ABCD-1234 +
java.io.File.separator)))
at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:393) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:683)
        at Script1.run(Script1.groovy:23)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:543)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:518)
at org.apache.maven.plugin.invoker.GroovyScriptInterpreter.evaluateScript(GroovyScriptInterpreter.java:83)


Any ideas? I'm on a Mac.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to