On 01/09/2015 02:11 PM, Pascal BASTIEN wrote:
My editor is vi on Linux then I use unix end of line...
I launch mvn -e xar:format for the second time and ^M disapeared... (X-files case? :-) )
Same here. Usually I run "mvn xar:format" twice before commiting. The first run fixes the indentation, comment headers, etc, but adds these ^M line endings (it might convert present in the *.xml file from the original XAR export) and the second one keeps the formatting and removes the ^M ... I guess that should be done in one run, too, but I have not bothered to check out the formatter code how todo it. Clemens
NB: and the download is not launched at the second time
Thxs a lot both. Pascal B De : Eduard Moraru <[email protected]> À : Pascal BASTIEN <[email protected]>; XWiki Users <[email protected]> Envoyé le : Vendredi 9 janvier 2015 13h50 Objet : Re: [xwiki-users] Howto use mvn xar:format ?
On Fri, Jan 9, 2015 at 2:41 PM, Pascal BASTIEN <[email protected]> wrote:
... erratum The wrong end of line is not on all TagCloud.xml file lines:I must remove them before to commit: with :set ff=unix with vi ?
Not sure about this one. I think it might help if you configure your editor to use unix line ending.
In any case, I think it does not matter because when you commit on git, the line endings will be converted to unix automatically.
Thanks, Eduard