This is obviously a bug. I *think* the code is trying to add maven version decoration between project name and any other decorations. Can you please submit a bug report in JIRA [1]? Patch will be much appreciated.

[1] http://jira.codehaus.org/browse/MNGECLIPSE

--
Regards,
Igor

MATHUS Baptiste wrote:
Hi all,

We happen to have a project whose name is something like "Project Name" (i.e. containing a space) and its version is say "2.1". M2E version decorator will decorate the version between "Project" and "Name", giving something like "Project 2.1 Name".

Here's the relevant code:
         ...
         if(mavenProject!=null) {
            int n = text.indexOf(' ');
            if(n==-1) {
              return text + "  " + mavenProject.getVersion();
            }
return text.substring(0, n) + " " + mavenProject.getVersion() + text.substring(n);
          }

It looks like this was made on purpose (I mean not just putting the version at the end of the string). Is this the case? We don't find it very easy to read like this, but there might be a rationale behind this behaviour we're not aware of. Obviously, if not, I'll be happy to propose a patch and the corresponding test.

Please let me know what you think.
Thanks.

--
Baptiste <Batmat> MATHUS - ___http://batmat.net_ <http://batmat.net/>
Save a tree,
Eat a beaver!



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to