prafulljha / maven-replacer-plugin

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

Plugin adds additional newline at the end of each file #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Plugin adds additional newline (0D0A) at the end of each processed file

What is the expected output? What do you see instead?
Expecting not to do it

What version of the product are you using? On what operating system?
maven-replacer-plugin 1.2
Maven version: 2.0.9
Java version: 1.6.0_18
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Please provide any additional information below.

Original issue reported on code.google.com by mkuz...@gmail.com on 3 Feb 2010 at 10:41

GoogleCodeExporter commented 9 years ago
Thanks for the report, I will attempt to resolve this for the next release.

Original comment by baker.st...@gmail.com on 3 Feb 2010 at 12:07

GoogleCodeExporter commented 9 years ago
Sorry, but I am having trouble replicating this issue.

I have added a file size comparison test to the test suite which passes with 
1.2.
Could you please email me an example where extra characters are being added?

Original comment by baker.st...@gmail.com on 3 Feb 2010 at 12:36

GoogleCodeExporter commented 9 years ago
Sorry, my mistake, I just detected difference in files and I misinterpret it.
Plugin is actually deleting any newlines (even multiple) from the end of 
processed file.

Original comment by mkuz...@gmail.com on 3 Feb 2010 at 12:54

GoogleCodeExporter commented 9 years ago
<plugin>
<execution><id>AqData7</id><phase>process-sources</phase><goals><goal>replace</g
oal></goals>
<configuration>
<includes>
<include>src/main/java/x/x/x/x/x/model/*.java</include>
</includes>
<token>@SequenceGenerator.*\)</token>
<value></value>
<regex>true</regex>
</configuration>
</execution>
</plugin>

Original comment by mkuz...@gmail.com on 3 Feb 2010 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I can replicate this.
I will resolve this in the next release.

Original comment by baker.st...@gmail.com on 3 Feb 2010 at 1:09

GoogleCodeExporter commented 9 years ago
Resolved, will be in next release.

Original comment by baker.st...@gmail.com on 3 Feb 2010 at 1:54

GoogleCodeExporter commented 9 years ago
1.3 has been released with this fixed.

Original comment by baker.st...@gmail.com on 9 Feb 2010 at 10:24

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