浏览代码

HADOOP-1067. Compile fails if Checkstyle jar is present in lib directory

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@515311 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 18 年之前
父节点
当前提交
1b18e73448
共有 2 个文件被更改,包括 17 次插入4 次删除
  1. 3 0
      CHANGES.txt
  2. 14 4
      build.xml

+ 3 - 0
CHANGES.txt

@@ -11,6 +11,9 @@ Trunk (unreleased changes)
     the record package and improve some record documentation.
     (Milind Bhandarkar via cutting)
 
+ 3. HADOOP-1067.  Compile fails if Checkstyle jar is present in lib
+    directory. Also remove dependency on a particular Checkstyle
+    version number. (tomwhite)
 
 Release 0.12.0 - 2007-03-02
 

+ 14 - 4
build.xml

@@ -73,6 +73,7 @@
     <pathelement location="${build.classes}"/>
     <fileset dir="${lib.dir}">
       <include name="**/*.jar" />
+      <exclude name="**/excluded/" />
     </fileset>
     <pathelement location="${conf.dir}"/>
   </path>
@@ -468,8 +469,13 @@
   </target>
 	
   <target name="checkstyle" depends="check-for-checkstyle" if="checkstyle.present">
- 	<taskdef resource="checkstyletask.properties"
-      classpath="${lib.dir}/checkstyle-all-4.3.jar"/>
+ 	<taskdef resource="checkstyletask.properties">
+      <classpath>
+        <fileset dir="${lib.dir}">
+          <include name="excluded/checkstyle-all-*.jar"/>
+        </fileset>
+      </classpath>
+    </taskdef>
   	
 	<mkdir dir="${test.build.dir}"/>
   	
@@ -485,8 +491,12 @@
   </target>
 	
   <target name="check-for-checkstyle">
-    <available property="checkstyle.present"
-    	file="${lib.dir}/checkstyle-all-4.3.jar">
+    <available property="checkstyle.present" resource="checkstyletask.properties">
+      <classpath>
+        <fileset dir="${lib.dir}">
+          <include name="excluded/checkstyle-all-*.jar"/>
+        </fileset>
+      </classpath>    	
     </available>  	
   </target>