You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2011/05/13 15:35:39 UTC

svn commit: r1102720 - /incubator/isis/trunk/addmissinglicenses.groovy

Author: danhaywood
Date: Fri May 13 13:35:39 2011
New Revision: 1102720

URL: http://svn.apache.org/viewvc?rev=1102720&view=rev
Log:
ISIS-20 enhancing addmissinglicenses.groovy to ignore .settings folder

Modified:
    incubator/isis/trunk/addmissinglicenses.groovy

Modified: incubator/isis/trunk/addmissinglicenses.groovy
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/addmissinglicenses.groovy?rev=1102720&r1=1102719&r2=1102720&view=diff
==============================================================================
--- incubator/isis/trunk/addmissinglicenses.groovy (original)
+++ incubator/isis/trunk/addmissinglicenses.groovy Fri May 13 13:35:39 2011
@@ -87,14 +87,13 @@ def license_using_hash_comments="""#  Li
 """
 
 
-def fileEndings = ["pom.xml"]
+def fileEndings = [".xml"]
 //def fileEndings = [".xml", ".shtml", ".css", ".java", ".sh", ".properties", ".groovy", ".allow", ".passwords"]
 
 def licenseTextByFileEnding = [
 	".java": license_using_c_style_comments,
 	".groovy": license_using_c_style_comments,
 	".css": license_using_c_style_comments,
-    "pom.xml": license_using_xml_comments,
 	".xml": license_using_xml_comments,
     ".shtml": license_using_xml_comments,
 	".properties": license_using_hash_comments,
@@ -109,8 +108,9 @@ def currentDir = new File(".");
 
 currentDir.eachFileRecurse { file ->
   fileEndings.each { fileEnding ->
-    if (! (file.canonicalPath =~ /[\\\/]target[\\\/]/) && 
-        ! (file.canonicalPath =~ /[\\\/]docbkx[\\\/]/)    ) {
+    if (! (file.canonicalPath =~ /[\\\/]target[\\\/]/)     && 
+        ! (file.canonicalPath =~ /[\\\/]docbkx[\\\/]/)     &&   {
+        ! (file.canonicalPath =~ /[\\\/]\.settings[\\\/]/)    ) {
       if (file.name.endsWith(fileEnding)) {
         def fileText = file.text;