From af414ae3d110252d90e5505684408ce1ddcefc56 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 01 Feb 2007 20:33:35 +0000
Subject: [PATCH] Update the CheckCopyrightDates utility to include lines starting with "rem" (as used in Windows batch files) as comment lines.  Also, update both the CheckCopyrightDates and CheckEOLStyle configuration so that the shell scripts in the resource/bin directory get checked even though they don't contain a ".sh" extension.

---
 opendj-sdk/opends/build-tools/src/org/opends/build/tools/CheckCopyrightDates.java |    1 +
 opendj-sdk/opends/build.xml                                                       |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/build-tools/src/org/opends/build/tools/CheckCopyrightDates.java b/opendj-sdk/opends/build-tools/src/org/opends/build/tools/CheckCopyrightDates.java
index 1c0d9a4..ed77785 100644
--- a/opendj-sdk/opends/build-tools/src/org/opends/build/tools/CheckCopyrightDates.java
+++ b/opendj-sdk/opends/build-tools/src/org/opends/build/tools/CheckCopyrightDates.java
@@ -283,6 +283,7 @@
         lowerLine.startsWith("*") ||
         lowerLine.startsWith("//") ||
         lowerLine.startsWith("#") ||
+        lowerLine.startsWith("rem") ||
         lowerLine.startsWith("<!--") ||
         lowerLine.startsWith("!"))
     {
diff --git a/opendj-sdk/opends/build.xml b/opendj-sdk/opends/build.xml
index 7263c8d..6b245f4 100644
--- a/opendj-sdk/opends/build.xml
+++ b/opendj-sdk/opends/build.xml
@@ -278,6 +278,7 @@
       <fileset dir="${basedir}" includes="**/*.bat" excludes="build/**/* " />
       <fileset dir="${basedir}" includes="**/*.ldif" excludes="build/**/*" />
       <fileset dir="${basedir}" includes="**/*.txt" excludes="build/**/*" />
+      <fileset dir="${scripts.dir}" includes="**/*" />
     </checkcopyrightdates>
   </target>
 
@@ -307,6 +308,7 @@
       <fileset dir="${basedir}" includes="**/*.bat" excludes="build/**/* " />
       <fileset dir="${basedir}" includes="**/*.ldif" excludes="build/**/*" />
       <fileset dir="${basedir}" includes="**/*.txt" excludes="build/**/*" />
+      <fileset dir="${scripts.dir}" includes="**/*" />
     </checkeolstyle>
   </target>
 

--
Gitblit v1.10.0