Browse Source

HDFS-2297. ant should pass jvmargs to findbugs. Contributed by Joep Rottinghuis.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.22@1163893 13f79535-47bb-0310-9956-ffa450edef68
Konstantin Shvachko 14 years ago
parent
commit
a0eacdcac9
2 changed files with 6 additions and 1 deletions
  1. 2 0
      hdfs/CHANGES.txt
  2. 4 1
      hdfs/build.xml

+ 2 - 0
hdfs/CHANGES.txt

@@ -611,6 +611,8 @@ Release 0.22.0 - Unreleased
     HDFS-2232. Generalize regular expressions in TestHDFSCLI.
     (Plamen Jeliazkov via shv)
 
+    HDFS-2297. ant should pass jvmargs to findbugs. (Joep Rottinghuis via shv)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

+ 4 - 1
hdfs/build.xml

@@ -196,6 +196,9 @@
   <property name="build.dir.eclipse-main-generated-classes" value="${build.dir.eclipse}/classes-main-generated"/>
   <property name="build.dir.eclipse-test-classes" value="${build.dir.eclipse}/classes-test"/>
   <property name="build.dir.eclipse-contrib-classes" value="${build.dir.eclipse}/classes-contrib"/>
+	
+  <!-- These args are passed along to FindBugs -->
+  <property name="findbugs.jvmargs" value="-Xmx512M" />
 
   <property name="clover.jar" location="${clover.home}/lib/clover.jar"/>
   <available property="clover.present" file="${clover.jar}" />
@@ -817,7 +820,7 @@
 
     <findbugs home="${findbugs.home}" output="xml:withMessages"
         outputFile="${findbugs.report.xmlfile}" effort="max"
-        excludeFilter="${findbugs.exclude.file}" jvmargs="-Xmx512M">
+        excludeFilter="${findbugs.exclude.file}" jvmargs="${findbugs.jvmargs}">
       <auxClasspath>
         <fileset dir="${lib.dir}">
           <include name="**/*.jar"/>