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.


git-svn-id: https://svn.apache.org/repos/asf/creadur/rat/trunk@1673261 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 2fcf0cd..c77057e 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -20,7 +20,7 @@
 
    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) 
diff --git a/apache-rat-plugin/pom.xml b/apache-rat-plugin/pom.xml
index 66f1b6e..0bfb3bd 100644
--- a/apache-rat-plugin/pom.xml
+++ b/apache-rat-plugin/pom.xml
@@ -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>
diff --git a/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java b/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
index ecd74fc..0c76edb 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
@@ -157,7 +157,7 @@
      *
      * @see org.apache.rat.config.SourceCodeManagementSystems
      */
-    @Parameter(property = "rat.parseSCMIgnoresAsExcludes", defaultValue = "false")
+    @Parameter(property = "rat.parseSCMIgnoresAsExcludes", defaultValue = "true")
     private boolean parseSCMIgnoresAsExcludes;
 
     /**
diff --git a/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore b/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore
new file mode 100644
index 0000000..f59acc0
--- /dev/null
+++ b/apache-rat-plugin/src/test/resources/unit/it1/.bzrignore
@@ -0,0 +1,5 @@
+## RAT-171: Add rubbish and ensure that the plugin behaves properly
+DoesNotExistAtALL/**
+*\IllegalStuffNotExisting
+Lets-See*+?!OrWhat
+\\nDoesThatWorkAsWell\/