Giter VIP home page Giter VIP logo

maven-replacer-plugin's People

maven-replacer-plugin's Issues

Regex-based replacing in multiple files

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

Regex replacement over several lines

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)&lt;!--removedByBuildStart(.|\s)*?removedByBuildEnd--&gt;</token>

Thanks for a great plugin!

Original issue reported on code.google.com by magnus%[email protected] on 25 Sep 2009 at 9:21

Using $ delimited tokens does not work

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

Option: Don't fail when file not found

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

does not preserve line feeds

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

java.io.FileNotFoundException is thrown when parent path for <outputFile> doesn't exist

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.