DhanaGitHub / maven-replacer-plugin

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

Output directory for replacer plugib #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using maven replacer plugin http://code.google.com/p/maven-replacer-plugin/ 
with below configuration

<configuration>
    <includes>
        <include>api/**/*.java</include>
    </includes>
    <token>@Start.*?@End</token>
    <value></value>
    <regexFlags>
        <regexFlag>DOTALL</regexFlag>
    </regexFlags>
    <outputBasedir>publicapi</outputBasedir>
</configuration>
My project structure is api/src/main/java/...xxx.java. I want replacer plugin 
to generate files in this structure - publicapi/src/main/java/...xxx.java 
whereas with current configuration, plugin generates files like this 
-publicapi/api/src/main/java/...xxx.java

I don't want "api" directory in between. Is there any property available in 
this plugin which can solve my problem.

Original issue reported on code.google.com by Dubey.pa...@gmail.com on 14 May 2012 at 11:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm at work at the moment so I cant verify this. 

But have you tried using <basedir>api</basedir> and keeping your outputBasedir 
as publicapi? You will also need to change your include to not include api

Original comment by baker.st...@gmail.com on 15 May 2012 at 2:33

GoogleCodeExporter commented 9 years ago
Have you already found a solution? I'm confronted with the same problem...

Original comment by andi.t...@googlemail.com on 12 Jun 2012 at 2:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Try this:

                <configuration>
                    <filesToInclude>**/*.java</filesToInclude>
                    <token>@Start.*?@End</token>
                    <value></value>
                    <regexFlags>
                        <regexFlag>DOTALL</regexFlag>
                    </regexFlags>
                    <basedir>${basedir}/api</basedir>
                    <outputDir>.</outputDir>
                    <outputBasedir>publicapi</outputBasedir>
                </configuration>

Original comment by baker.st...@gmail.com on 12 Jun 2012 at 11:47

GoogleCodeExporter commented 9 years ago
Closing old issue with no response.

Original comment by baker.st...@gmail.com on 8 Aug 2012 at 12:26