mikehunter76 / maven-replacer-plugin Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/maven-replacer-plugin
License: MIT License
Automatically exported from code.google.com/p/maven-replacer-plugin
License: MIT License
When I replace tokens, I want to output to a different file name. I have
modified the source. Please see the attached patch.
Original issue reported on code.google.com by [email protected]
on 28 Jul 2009 at 2:06
Attachments:
Hi,
I want to replace som values in a file and I want to use a different
outputfile than the original. So I have one folder for the original and
another folder for the modified. This works fine for as long as the output
folder structure exist, but if the outputFile:s parent path doesn't exist,
a FileNotFoundException is thrown.
It might be a good feature to try and create the folder structure for
parameter outputFile if such doesn't exist.
I made a quick-fix just to get around this problem which is attached as a
SVN-patch.
Regards
Johan
Original issue reported on code.google.com by [email protected]
on 5 Sep 2009 at 10:30
Attachments:
Take an xml file which has new lines
Use the config
<plugin>
<groupId>bakersoftware</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>0.0.8</version>
<executions>
<execution>
<id>broadcast</id>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<file>src/main/resources/somefile.xml</file>
<token>@TOKEN@</token>
<value>${maven.property}</value>
</configuration>
</execution>
Output file has updated tokens but missing line feeds
Original issue reported on code.google.com by [email protected]
on 24 Mar 2009 at 2:44
Hi,
it would be useful to add support to regex-replace several lines in a file.
Now its only possible to replace on one line.
Example text in file:
<!--removedByBuildStart-->
This is text I want to replace....
<!--removedByBuildEnd-->
And with a regex like this to replace all these lines:
<token>(?m)<!--removedByBuildStart(.|\s)*?removedByBuildEnd--></token>
Thanks for a great plugin!
Original issue reported on code.google.com by magnus%[email protected]
on 25 Sep 2009 at 9:21
Investigate changing a target text file's token within an existing archive.
Original issue reported on code.google.com by [email protected]
on 6 Oct 2009 at 10:06
1. Try to replace something in non-existent file
2. Build fails when the file is not found.
This failure should be optional.
[INFO] [replacer:replace {execution: mrp1}]
[INFO] Replacing attribute A with attribute B in /.../messaging-service.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] /.../messaging-service.xml (No such file or directory)
Original issue reported on code.google.com by [email protected]
on 13 May 2009 at 2:53
What steps will reproduce the problem?
1. use a $ delimited token like $token$
2. try to replace it
What is the expected output? What do you see instead?
That replacement works. Replacement does not happen.
What version of the product are you using? On what operating system?
1.0
Please provide any additional information below.
On OSX, Maven 2.1
Original issue reported on code.google.com by [email protected]
on 12 Aug 2009 at 3:24
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 [email protected]
on 29 May 2009 at 9:14
Hi -
I downloaded your source and modified it to fit my need of inserting the
maven project version to relative paths to static resources in my jsp files.
I'd be happy to contribute the changes to this project if you add me.
Thanks
--
Lauri
Original issue reported on code.google.com by [email protected]
on 17 Apr 2009 at 5:27
This plugin doesn't seem to be on central (http://repo1.maven.org/maven2)
This plugin is so great but we couldn't find it everywhere. :P
Original issue reported on code.google.com by [email protected]
on 15 Jun 2009 at 1:31
Please provide instructions or a way of downloading the plugin with just
the POM
Original issue reported on code.google.com by [email protected]
on 6 May 2009 at 6:48
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.