prafulljha / maven-replacer-plugin

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

Ability to pass multiple token/value as string? #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No ability to pass multiple replacement token/value as one string, separated 
by a specified delimiter (like the filesToInclude property).
2. This would be convenient when using a main company pom in which the 
maven-replacer-plugin is defined, but you don't always know how many 
replacements should be done. Passing a replacements string as a pom property 
would be convenient.
3. tokenValueMap partially solves this, but can't include pom properties like 
${pom.version} in the tokenValueMap.

What is the expected output? What do you see instead?
Something like:        
<tokenValueReplacements>##PROGRAM_VERSION##=${program.version},##BUILD_NUMBER##=
${pom.version}</tokenValueReplacements>
where , is separator for each token/value.

What version of the product are you using? On what operating system?
1.3.5.

Please provide any additional information below.

Original issue reported on code.google.com by manfred....@gmail.com on 12 Feb 2011 at 6:49

GoogleCodeExporter commented 9 years ago
I'll mark this as an enhancement.
In the meantime you should be able to use the <replacements> configuration.

-- Steven

Original comment by baker.st...@gmail.com on 14 Feb 2011 at 7:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Code changes complete. Will be in next release.
New configuration parameter added. e.g. 
<variableTokenValueMap>token1=value1,token2=value2</variableTokenValueMap>

Original comment by baker.st...@gmail.com on 22 Feb 2011 at 12:20

GoogleCodeExporter commented 9 years ago
1.3.7 released.

Original comment by baker.st...@gmail.com on 27 Feb 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Just issue clean up.

Original comment by baker.st...@gmail.com on 17 Sep 2012 at 12:45