jmporterog / maven-replacer-plugin

Automatically exported from code.google.com/p/maven-replacer-plugin
MIT License
0 stars 0 forks source link

<value> in <replacement> is trimmed (probably) #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version 1.5.2

In my pom I have 
<replacements>
 <replacement>
   <token>(\s+)NUMBER</token>
   <value> NUMERIC</value>
 </replacement>
...
</replacements>

Note the space before NUMERIC in the value tag.
Problem: when replacement occurs, the space is not appended.

Example:
"TEST_ID NUMBER" should be replaced by "TEST_ID NUMERIC", but is replaced by 
"TEST_IDNUMERIC".

I analysed the code of TokenReplacer and I did not find anything, so I am 
suspecting that the value is trimmed somewhere else. 
Probably it's even undocumented limitation of maven ??? 

Original issue reported on code.google.com by cinikmar...@gmail.com on 9 Jan 2013 at 12:40

GoogleCodeExporter commented 9 years ago
Thanks, I'll have a look. However, I suspect it is maven functionality.

Original comment by baker.st...@gmail.com on 16 Jan 2013 at 5:07

GoogleCodeExporter commented 9 years ago
Cinikmarcin, this looks like the functionality of maven. 

Perhaps you could use the valueFile parameter and have a file that contains the 
spaces you need.

Original comment by baker.st...@gmail.com on 18 Jan 2013 at 6:20

GoogleCodeExporter commented 9 years ago
Since there is nothing I can do here, I will close this ticket. Please try 
using the other options in UsageGuide.

Original comment by baker.st...@gmail.com on 21 Jan 2013 at 1:26