Author: pottlinger
Date: Mon Apr 13 18:51:01 2015
New Revision: 1673261
URL: http://svn.apache.org/r1673261
Log:
RAT-171: Enabled SCM parser.
* Augmented RELEASE_NOTES to be more precise.
* Added integration test that contains syntax errors in the ignore file.
* Enabled feature by default after feedback from feature requester/consumer.
Added:
creadur/rat/trunk/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore
Modified:
creadur/rat/trunk/RELEASE_NOTES.txt
creadur/rat/trunk/apache-rat-plugin/pom.xml
creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
Modified: creadur/rat/trunk/RELEASE_NOTES.txt
URL:
http://svn.apache.org/viewvc/creadur/rat/trunk/RELEASE_NOTES.txt?rev=1673261&r1=1673260&r2=1673261&view=diff
==============================================================================
--- creadur/rat/trunk/RELEASE_NOTES.txt (original)
+++ creadur/rat/trunk/RELEASE_NOTES.txt Mon Apr 13 18:51:01 2015
@@ -20,7 +20,7 @@ Rat 0.12 (SNAPSHOT)
New features
* [RAT-171] - Maven plugin allows scanning of source code management
ignore files. Their contents is added as exclusion/ignored during RAT runs.
-
+ Supported source code management systems are: SVN, Git,
Bazaar, Mercurial and CVS.
Improvement
* [RAT-196] - Minor refactoring in pom.xml.
(thanks to Karl Heinz Marbaise)
Modified: creadur/rat/trunk/apache-rat-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/pom.xml?rev=1673261&r1=1673260&r2=1673261&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-plugin/pom.xml Mon Apr 13 18:51:01 2015
@@ -88,6 +88,8 @@
<exclude>src/test/resources/unit/it2/src.txt</exclude>
<exclude>src/test/resources/unit/it3/src.apt</exclude>
<exclude>**/*.iml</exclude>
+ <!-- RAT-171: needs to be added since SCM ignores are only
parsed in project root -->
+ <exclude>**/.bzrignore</exclude>
</excludes>
</configuration>
</plugin>
Modified:
creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
URL:
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java?rev=1673261&r1=1673260&r2=1673261&view=diff
==============================================================================
---
creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
(original)
+++
creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
Mon Apr 13 18:51:01 2015
@@ -157,7 +157,7 @@ public abstract class AbstractRatMojo ex
*
* @see org.apache.rat.config.SourceCodeManagementSystems
*/
- @Parameter(property = "rat.parseSCMIgnoresAsExcludes", defaultValue =
"false")
+ @Parameter(property = "rat.parseSCMIgnoresAsExcludes", defaultValue =
"true")
private boolean parseSCMIgnoresAsExcludes;
/**
Added:
creadur/rat/trunk/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore
URL:
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore?rev=1673261&view=auto
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore
(added)
+++ creadur/rat/trunk/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore
Mon Apr 13 18:51:01 2015
@@ -0,0 +1,5 @@
+## RAT-171: Add rubbish and ensure that the plugin behaves properly
+DoesNotExistAtALL/**
+*\IllegalStuffNotExisting
+Lets-See*+?!OrWhat
+\\nDoesThatWorkAsWell\/