mozzash / maven-replacer-plugin

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

Support specifying an output directory as a base for all replaced files #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Set an output directory for all replaced files.

The output directory should be created automatically if it does not exist.
Any include based replaced file's path should be maintained in the output 
directory. This should not apply to other files included. (Possible future 
enhancement to make all replacements write out to a flat outputDir).

e.g. use: 
<include>src/main/sql/somefile</include>
<outputDir>target/processed</outputDir>

Should create a replaced version of somefile as target/processed/somefile.

(Similar feature as outputFile but applies to multiple files being replaced).

Original issue reported on code.google.com by baker.st...@gmail.com on 29 Oct 2010 at 11:31

GoogleCodeExporter commented 9 years ago
Feature implemented. Will be included in the next release.

Original comment by baker.st...@gmail.com on 30 Oct 2010 at 10:54

GoogleCodeExporter commented 9 years ago
Released in 1.3.3.

Original comment by baker.st...@gmail.com on 30 Oct 2010 at 3:03

GoogleCodeExporter commented 9 years ago
I tested it. Useful extension, thanks!

One issue: outputDir seems to be relative to basedir. Can it be made relative 
to the maven execution directory instead? For example, I would like my 
processed files to go into a target/ subdirectory.

Original comment by maff...@gmail.com on 1 Nov 2010 at 3:30

GoogleCodeExporter commented 9 years ago
I think I would need to add another option such as outputBaseDir which would be 
the maven baseDir by default and you could just have it empty to be the 
execution dir.
Would this work for you?

Original comment by baker.st...@gmail.com on 2 Nov 2010 at 10:51

GoogleCodeExporter commented 9 years ago
Yes I think this would do the trick! Thanks

Original comment by maff...@gmail.com on 3 Nov 2010 at 8:18

GoogleCodeExporter commented 9 years ago
Changes made to source. Just need to test and release.
Feel free to give the source code a try.

Just set your basedir to empty and use the new parameter: outputBasedir (note 
the lower case d).
(The lower case was chosen because the basedir follows this convention).

Original comment by baker.st...@gmail.com on 15 Nov 2010 at 4:24

GoogleCodeExporter commented 9 years ago
Released in version 1.3.4. Please test.

Original comment by baker.st...@gmail.com on 15 Nov 2010 at 9:16

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:42