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!