Applying the stricter Rat policy
diff --git a/LICENSE b/LICENSE
index d13b95f..d645695 100644
--- a/LICENSE
+++ b/LICENSE
@@ -200,33 +200,3 @@
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-
-=========================================================================
-
-The Apache FreeMarker (incubating) source code contains the following
-files without copyright header for technical reasons, which were created
-at the Apache FreeMarker (incubating) project, and hence are covered by
-the same license as the other source files of it:
-
-    src/main/image/logo-square-rounded.png
-    src/main/image/logo-square-rounded.svg
-    src/main/image/logo-square.png
-    src/main/image/logo-square.svg
-    src/main/docgen/favicon.png
-    src/main/docgen/images/overview.png
-    src/main/docgen/images/poweredby_big_ffffff.png
-    src/main/docgen/images/poweredby_ffffff.png
-    src/main/docgen/images/poweredby_sq_bluespot.png
-    src/main/docgen/images/poweredby_sq_simple.png
-    src/main/docgen/images/poweredby_sq_sunset.png
-    src/main/docgen/logo.png
-    
-=========================================================================
-
-The Apache FreeMarker (incubating) source code contains the following
-binaries, which were created at the Apache Incubator project, and hence
-are covered by the same license as Apache FreeMarker (incubating):
-    
-    src/main/docgen/images/apache-incubator.png
-    
-=========================================================================
diff --git a/build.xml b/build.xml
index b79e6c0..9bdcc7b 100644
--- a/build.xml
+++ b/build.xml
@@ -134,12 +134,7 @@
     />  
     
     <rat:report reportFile="build/rat-report.txt">
-      <fileset dir="">
-        <exclude name="build/**"/>
-        <exclude name="ide-dependencies/**"/>
-        <exclude name=".*"/>
-        <exclude name=".*/**"/>
-      </fileset>
+      <fileset dir="" excludesfile="rat-excludes" />
     </rat:report>
     <echo level="info"><!--
     -->Rat reports were written into build/rat-report.txt<!--
diff --git a/rat-excludes b/rat-excludes
new file mode 100644
index 0000000..f5acec5
--- /dev/null
+++ b/rat-excludes
@@ -0,0 +1,76 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# In src/:
+# --------
+
+# Generated files basically; see details in the files:
+src/main/docgen/docgen-misc/googleAnalytics.html
+
+# Binaries/archives created in the FreeMarker project:
+src/main/image/logo-square-rounded.png
+src/main/image/logo-square-rounded.svg
+src/main/image/logo-square.png
+src/main/image/logo-square.svg
+src/main/docgen/favicon.png
+src/main/docgen/images/overview.png
+src/main/docgen/images/poweredby_big_ffffff.png
+src/main/docgen/images/poweredby_ffffff.png
+src/main/docgen/images/poweredby_sq_bluespot.png
+src/main/docgen/images/poweredby_sq_simple.png
+src/main/docgen/images/poweredby_sq_sunset.png
+src/main/docgen/logo.png
+    
+# Binaries/archives created in the Incubatir project:
+src/main/docgen/images/apache-incubator.png
+
+# Tooling/IDE generated files:
+# ----------------------------
+
+ide-dependencies/**
+archive
+.git/**
+.ivy/**
+.bin/**
+bin/**
+build/**
+.build/**
+out/**
+.out/**
+target/**
+.settings/**
+.classpath
+.project
+.settings
+.idea/**
+*.iml
+*.iws
+*.ipr
+.idea_modules/**
+.out/**
+.gradle/**
+gradle/**
+.DS_Store*
+.AppleDouble
+.LSOverride
+.directory
+.Trash*
+
+# Well known files that need no license note:
+# -------------------------------------------
+
+README.md
diff --git a/src/main/image/logo-square.txt b/src/main/image/logo-square.txt
index 5e06f81..fd176a7 100644
--- a/src/main/image/logo-square.txt
+++ b/src/main/image/logo-square.txt
@@ -1,2 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Copy this file to "build.properties" before editing!
+# These propeties should point to the rt.jar-s of the r
+
 As of 2017-02-01, the logo-square-* logo is only used on https://twitter.com/freemarker
 According the author, they don't use any font, the letters are just shapes made by him.
\ No newline at end of file