prafulljha / maven-replacer-plugin

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

Enhancement - handling directory and multiple replacement #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a enhancement request, not a issue. It will be great if this plugin 
can handle multiple files in multiple directories and multiple sets of 
replacements at the same time.    

Original issue reported on code.google.com by briank...@gmail.com on 29 May 2009 at 9:14

GoogleCodeExporter commented 9 years ago
Thanks for the request. I'm working on a fairly major update which will include 
this.

Original comment by baker.st...@gmail.com on 4 Jun 2009 at 12:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This change could radically change the plugin usage and impact on outputFile 
functionality.
I am delaying this change unless there is high demand.

Original comment by baker.st...@gmail.com on 6 Oct 2009 at 4:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Will re-investigate whilst investigating Issue 14.

Original comment by baker.st...@gmail.com on 6 Oct 2009 at 10:55

GoogleCodeExporter commented 9 years ago
This issue will continue with the distinction from Issue 14 as handling
file/directory patterns, rather than individual files.

Original comment by baker.st...@gmail.com on 12 Nov 2009 at 11:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I just discovered this plugin on a google search looking for a maven replacment 
for
ant replace plugin.  This product looks perfect except for the fact that it 
requries
to do this one file at a time.

I could only use the product if I could name a directory and it would every 
file that
matches or if I could put some sort of file search expression.

Original comment by mendelso...@gmail.com on 18 Dec 2009 at 3:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I will prioritise this task again.

My concerns with implementing this feature to support file patterns like ants 
is that 
I will either have to rewrite what ant has done, or make use of ant which will 
require users to either:
- include ant (at least whilst maven-replacer-plugin is not within the maven 
repo) in 
their dependencies.
- be forced to use plugin repository to install (See [InstallationGuide])
- or use a jar which has ant embedded (jar-with-dependencies), which will bloat 
the 
file size to over 1 MB.

I will still be attempting to implement this for you.

Original comment by baker.st...@gmail.com on 20 Dec 2009 at 2:03

GoogleCodeExporter commented 9 years ago
Implemented in next release

Original comment by baker.st...@gmail.com on 20 Dec 2009 at 11:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
1.2-RC1 released with this feature

Original comment by baker.st...@gmail.com on 20 Dec 2009 at 10:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Current usage (in RC1):
<build>
    <plugins>
        <plugin>
            <groupId>com.google.code.maven-replacer-plugin</groupId>
            <artifactId>maven-replacer-plugin</artifactId>
            <version>1.2-RC1</version>              
            <executions>
        <execution>
        <id>multiple-files</id>
        <phase>test</phase>
        <goals>
            <goal>replace</goal>
        </goals>
        <configuration>
            <includes>
                <include>target/classes/**/multiple-files*.txt</include>
            </includes>
            <excludes>
                <exclude>target/classes/excluded*.*</exclude>
            </excludes>
            <token>token</token>
            <value>value</value>
        </configuration>
        </execution>
    </executions>
    </plugin>
    </plugins>
</build>

Original comment by baker.st...@gmail.com on 20 Dec 2009 at 10:10

GoogleCodeExporter commented 9 years ago
Note: Do not attempt to use includes with the file param. If the file param is 
given
it will only use that param and ignore the includes.

Original comment by baker.st...@gmail.com on 20 Dec 2009 at 10:15

GoogleCodeExporter commented 9 years ago
See: UpcomingUsageGuide

Original comment by baker.st...@gmail.com on 21 Dec 2009 at 2:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just issue clean up.

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