Comments (8)
instead of overwriting the .template files this should produce .xml files with
the
tokens being replaced.
Original comment by [email protected]
on 5 Mar 2010 at 4:58
from maven-replacer-plugin.
Interesting idea, I will experiment with this and let you know.
Original comment by [email protected]
on 6 Mar 2010 at 7:18
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from maven-replacer-plugin.
I've experimented with the plugin source code and added a new property
"outputdir". Example:
<filesToInclude>*.sql</filesToInclude>
<basedir>src/main/sql</basedir>
<outputdir>target/processedsql</outputdir>
This allows me to leave the input files unmodified and save the processed files
into target/processedsql
Original comment by [email protected]
on 1 Nov 2010 at 3:22
from maven-replacer-plugin.
I think this enhancement would still be useful in cases where the output file
names need some pattern specified.
Original comment by [email protected]
on 27 Nov 2010 at 5:22
from maven-replacer-plugin.
Original comment by [email protected]
on 12 Mar 2012 at 7:01
- Changed state: Started
from maven-replacer-plugin.
Code changes made. New paramters: inputFilePattern and outputFilePattern added.
These must be used together to take effect.
e.g. inputFilePattern of 'test-(.+)-file' and outputFilePattern of: test-$1-new
with a file named: test-template-file will have it's replacements written to:
'test-template-new'.
This is currently in trunk and awaits the next release.
Original comment by [email protected]
on 12 Mar 2012 at 7:23
from maven-replacer-plugin.
[deleted comment]
from maven-replacer-plugin.
Just issue clean up.
Original comment by [email protected]
on 17 Sep 2012 at 12:41
- Changed state: Released
- Added labels: 1.5.0
from maven-replacer-plugin.
Related Issues (20)
- Why is <token> required when using <xpath>? HOT 3
- ReplacerMojo#replaceContents eats exceptions
- Can't replace with dynamic value form the properties file for the matched token HOT 2
- Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.google.code.maven_replacer_plugin.Replacement HOT 3
- maven-replacer-plugin don't include the license file HOT 5
- Use of outputFilePattern generate "Error creating directory" error HOT 5
- Add posbility to choose if you want to replace first ocurrence. HOT 4
- Add special characters in "value" HOT 1
- replacer cause jetty-maven-plugin jetty:run fails because dependencies in pom.xml are not included in its classpath HOT 3
- replacer add /null at basedir and cannot search file HOT 4
- NullPointerException when using inputFilePattern/outputFilePattern HOT 3
- StackOverflowError HOT 4
- Absolute path does not work in file/includes:include HOT 3
- xpath replaces text content with duplication HOT 3
- Naming of the plugin is not following the Apache Rules HOT 1
- XPath in Replacements leads to Duplicate Substitution of Value HOT 2
- Feature suggestion - ability to specify multiple files for the same replacement(s) HOT 1
- Paths relative to POM do not work HOT 2
- Patterns containing any of '^', '$', '<', '>' do not match HOT 3
- Error during XML replacement: Content is not allowed in prolog. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maven-replacer-plugin.