Hi Eugene, Well, in fact, I wanted to provide the patch along with the bug report. Thanks to the documentation, I was able to download and create the enormous TP :-).
I tried to configure my envt, but time went on and I didn't finish. Sorry for that and thanks for the fix. Cheers. -----Message d'origine----- De : Eugene Kuleshov [mailto:[EMAIL PROTECTED] Envoyé : mardi 25 novembre 2008 11:54 À : [email protected] Objet : Re: [m2eclipse-user] Version Decorator : version put in between when the project name contains space Baptiste, I committed fix into trunk. Version info is now added after the project name. See http://jira.codehaus.org/browse/MNGECLIPSE-1073 Though recommended practice is to keep project names derived from the artifactId (e.g. [artifactId], [groupId].[artifactId], [artifactId]-[version] or [artifactId]-someSuffix). In the future, please don't hesitate to enter jira issues, even if you unable to provide patch. Thanks Eugene 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. > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
