creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1545772 - /creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
Date Tue, 26 Nov 2013 18:38:12 GMT
Author: dennisl
Date: Tue Nov 26 18:38:12 2013
New Revision: 1545772

URL: http://svn.apache.org/r1545772
Log:
[RAT-152] Recognize the format for .bsh, .fml and .jsp file types.

Modified:
    creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java

Modified: creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java?rev=1545772&r1=1545771&r2=1545772&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
(original)
+++ creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/AbstractLicenceAppender.java
Tue Nov 26 18:38:12 2013
@@ -62,6 +62,9 @@ public abstract class AbstractLicenceApp
     private static final int TYPE_PHP = 20;
     private static final int TYPE_GROOVY = 21;
     private static final int TYPE_VISUAL_STUDIO_SOLUTION = 22;
+    private static final int TYPE_BEANSHELL = 23;
+    private static final int TYPE_JSP = 24;
+    private static final int TYPE_FML = 25;
 
     /** the line separator for this OS */
     private static final String LINE_SEP = System.getProperty("line.separator");
@@ -69,9 +72,10 @@ public abstract class AbstractLicenceApp
     private static final int[] FAMILY_C = new int[] {
         TYPE_JAVA, TYPE_JAVASCRIPT, TYPE_C, TYPE_H, TYPE_SCALA,
         TYPE_CSS, TYPE_CPP, TYPE_CSHARP, TYPE_PHP, TYPE_GROOVY,
+        TYPE_BEANSHELL,
     };
     private static final int[] FAMILY_SGML = new int[] {
-        TYPE_XML, TYPE_HTML,
+        TYPE_XML, TYPE_HTML, TYPE_JSP, TYPE_FML,
     };
     private static final int[] FAMILY_SH = new int[] {
         TYPE_PROPERTIES, TYPE_PYTHON, TYPE_SH, TYPE_RUBY, TYPE_PERL,
@@ -128,6 +132,7 @@ public abstract class AbstractLicenceApp
         EXT2TYPE.put("ascx", Integer.valueOf(TYPE_HTML));
         EXT2TYPE.put("aspx", Integer.valueOf(TYPE_HTML));
         EXT2TYPE.put("bat", Integer.valueOf(TYPE_BAT));
+        EXT2TYPE.put("bsh", Integer.valueOf(TYPE_BEANSHELL));
         EXT2TYPE.put("c", Integer.valueOf(TYPE_C));
         EXT2TYPE.put("cc", Integer.valueOf(TYPE_CPP));
         EXT2TYPE.put("cmd", Integer.valueOf(TYPE_BAT));
@@ -138,6 +143,7 @@ public abstract class AbstractLicenceApp
         EXT2TYPE.put("csproj", Integer.valueOf(TYPE_XML));
         EXT2TYPE.put("css", Integer.valueOf(TYPE_CSS));
         EXT2TYPE.put("fxcop", Integer.valueOf(TYPE_XML));
+        EXT2TYPE.put("fml", Integer.valueOf(TYPE_FML));
         EXT2TYPE.put("groovy", Integer.valueOf(TYPE_GROOVY));
         EXT2TYPE.put("h", Integer.valueOf(TYPE_H));
         EXT2TYPE.put("hh", Integer.valueOf(TYPE_H));
@@ -146,6 +152,7 @@ public abstract class AbstractLicenceApp
         EXT2TYPE.put("html", Integer.valueOf(TYPE_HTML));
         EXT2TYPE.put("java", Integer.valueOf(TYPE_JAVA));
         EXT2TYPE.put("js", Integer.valueOf(TYPE_JAVASCRIPT));
+        EXT2TYPE.put("jsp", Integer.valueOf(TYPE_JSP));
         EXT2TYPE.put("ndoc", Integer.valueOf(TYPE_XML));
         EXT2TYPE.put("nunit", Integer.valueOf(TYPE_XML));
         EXT2TYPE.put("php", Integer.valueOf(TYPE_PHP));



Mime
View raw message