simonetallevi / maven-replacer-plugin

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

Enhancement: Multiple token/value pairs per configuration. #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to be able to do something like this:

<configuration>
    <replacements>
        <replacement>
            <token>firsttoken</token>
            <value>firstvalue</value>
        </replacement>
        <replacement>
            <token>secondtoken</token>
            <value>secondvalue</value>
        </replacement>
        ...
    </replacements>
</configuration>

The same affect can already be achieved through multiple executions, but 
something like this 
should be a bit more concise.

Thanks for this plugin!

Original issue reported on code.google.com by mike.whi...@gmail.com on 11 Jan 2010 at 6:56

GoogleCodeExporter commented 9 years ago
Hi Mike,
I will implement it for the next release.

In the meantime, this functionality can be achieved by using a tokenValueMap 
file.

Thanks for the suggestion,
Steven

Original comment by baker.st...@gmail.com on 11 Jan 2010 at 11:00

GoogleCodeExporter commented 9 years ago
This can go in two directions. Either each replacement element defines an 
complete
configuration (i.e. includes the target file, regex on/off, etc) or two have 
each
replacement element only contain a token/value pair (as you described above).

I will go with the second simpler approach. If you are adverse to this, please 
comment.

Original comment by baker.st...@gmail.com on 3 Feb 2010 at 9:14

GoogleCodeExporter commented 9 years ago
Implementation and automated tests now in place. Will be out in the next 
release.
If you are keen you can use the trunk version (1.3) to build and install into 
your
own repository yourself to get this functionality now.

Original comment by baker.st...@gmail.com on 3 Feb 2010 at 10:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
1.3 has been released with this enhancement.

Original comment by baker.st...@gmail.com on 9 Feb 2010 at 10:24

GoogleCodeExporter commented 9 years ago
Just issue clean up.

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