<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -209,6 +209,7 @@
     &lt;pathelement location=&quot;${build.dir}&quot;/&gt;
   &lt;/path&gt;
 
+
   &lt;!-- ====================================================== --&gt;
   &lt;!-- Macro definitions                                      --&gt;
   &lt;!-- ====================================================== --&gt;
@@ -240,6 +241,7 @@
     &lt;mkdir dir=&quot;${test.build.extraconf}&quot;/&gt;
     &lt;tempfile property=&quot;touch.temp.file&quot; destDir=&quot;${java.io.tmpdir}&quot;/&gt;
     &lt;touch millis=&quot;0&quot; file=&quot;${touch.temp.file}&quot;&gt;
+      &lt;fileset dir=&quot;${conf.dir}&quot; includes=&quot;**/*.template&quot;/&gt;
       &lt;fileset dir=&quot;${contrib.dir}&quot; includes=&quot;**/*.template&quot;/&gt;
     &lt;/touch&gt;
     &lt;delete file=&quot;${touch.temp.file}&quot;/&gt;
@@ -254,8 +256,34 @@
   &lt;!-- ====================================================== --&gt;
   &lt;!-- Compile the Java files                                 --&gt;
   &lt;!-- ====================================================== --&gt;
+  &lt;target name=&quot;record-parser&quot; depends=&quot;init&quot; if=&quot;javacc.home&quot;&gt;
+      &lt;javacc
+          target=&quot;${core.src.dir}/org/apache/hadoop/record/compiler/generated/rcc.jj&quot;
+          outputdirectory=&quot;${core.src.dir}/org/apache/hadoop/record/compiler/generated&quot;
+          javacchome=&quot;${javacc.home}&quot; /&gt;
+  &lt;/target&gt;
+  
+  &lt;target name=&quot;compile-rcc-compiler&quot; depends=&quot;init, record-parser&quot;&gt;
+    &lt;javac 
+        encoding=&quot;${build.encoding}&quot; 
+        srcdir=&quot;${hdfs.src.dir}&quot;
+        includes=&quot;org/apache/hadoop/record/compiler/**/*.java&quot;
+        destdir=&quot;${build.classes}&quot;
+        debug=&quot;${javac.debug}&quot;
+        optimize=&quot;${javac.optimize}&quot;
+        target=&quot;${javac.version}&quot;
+        source=&quot;${javac.version}&quot;
+        deprecation=&quot;${javac.deprecation}&quot;&gt;
+        &lt;compilerarg line=&quot;${javac.args}&quot;/&gt;
+        &lt;classpath refid=&quot;classpath&quot;/&gt;
+    &lt;/javac&gt;
+    
+    &lt;taskdef name=&quot;recordcc&quot; classname=&quot;org.apache.hadoop.record.compiler.ant.RccTask&quot;&gt;
+      &lt;classpath refid=&quot;classpath&quot; /&gt;
+    &lt;/taskdef&gt;
+  &lt;/target&gt;
 
-  &lt;target name=&quot;compile-hdfs-classes&quot; depends=&quot;init&quot;&gt;
+  &lt;target name=&quot;compile-hdfs-classes&quot; depends=&quot;init, compile-rcc-compiler&quot;&gt;
     &lt;taskdef classname=&quot;org.apache.jasper.JspC&quot; name=&quot;jsp-compile&quot; &gt;
        &lt;classpath refid=&quot;classpath&quot;/&gt;
     &lt;/taskdef&gt;
@@ -310,10 +338,10 @@
      &lt;/subant&gt;  	
   &lt;/target&gt;
   
-  &lt;target name=&quot;compile&quot; depends=&quot;compile-core, compile-contrib, compile-ant-tasks&quot; description=&quot;Compile hdfs and contrib&quot; /&gt;
+  &lt;target name=&quot;compile&quot; depends=&quot;compile-core, compile-contrib, compile-ant-tasks&quot; description=&quot;Compile core, contrib&quot;/&gt;
 
   &lt;!-- ================================================================== --&gt;
-  &lt;!-- Make hadoop-hdfs.jar                                               --&gt;
+  &lt;!-- Make hadoop.jar                                                     --&gt;
   &lt;!-- ================================================================== --&gt;
   &lt;!--                                                                    --&gt;
   &lt;!-- ================================================================== --&gt;
@@ -334,10 +362,6 @@
     &lt;/jar&gt;
   &lt;/target&gt;
 
-  &lt;!-- ================================================================== --&gt;
-  &lt;!-- Compile test code                                                  --&gt; 
-  &lt;!-- ================================================================== --&gt;
-
   &lt;target name=&quot;compile-hdfs-test&quot; depends=&quot;compile-hdfs-classes, ivy-retrieve-test&quot;&gt;
     &lt;mkdir dir=&quot;${test.hdfs.build.classes}&quot;/&gt;
     &lt;javac 
@@ -453,8 +477,6 @@
       &lt;sysproperty key=&quot;test.src.dir&quot; value=&quot;${test.src.dir}&quot;/&gt;
       &lt;sysproperty key=&quot;test.build.extraconf&quot; value=&quot;${test.build.extraconf}&quot; /&gt;
       &lt;sysproperty key=&quot;hadoop.policy.file&quot; value=&quot;hadoop-policy.xml&quot;/&gt;
-      &lt;sysproperty key=&quot;java.library.path&quot;
-       value=&quot;${build.native}/lib:${lib.dir}/native/${build.platform}&quot;/&gt;
       &lt;classpath refid=&quot;test.classpath&quot;/&gt;
       &lt;formatter type=&quot;${test.junit.output.format}&quot; /&gt;
       &lt;batchtest todir=&quot;${test.build.dir}&quot; unless=&quot;testcase&quot;&gt;
@@ -470,6 +492,7 @@
   &lt;/target&gt;  
 
   &lt;target name=&quot;run-test-hdfs-with-mr&quot; depends=&quot;compile-hdfs-with-mr-test&quot; description=&quot;Run hdfs unit tests that require mapred&quot;&gt;
+
     &lt;delete dir=&quot;${test.build.data}&quot;/&gt;
     &lt;mkdir dir=&quot;${test.build.data}&quot;/&gt;
     &lt;delete dir=&quot;${test.log.dir}&quot;/&gt;
@@ -491,8 +514,6 @@
       &lt;sysproperty key=&quot;test.src.dir&quot; value=&quot;${test.src.dir}&quot;/&gt;
       &lt;sysproperty key=&quot;test.build.extraconf&quot; value=&quot;${test.build.extraconf}&quot; /&gt;
       &lt;sysproperty key=&quot;hadoop.policy.file&quot; value=&quot;hadoop-policy.xml&quot;/&gt;
-      &lt;sysproperty key=&quot;java.library.path&quot;
-       value=&quot;${build.native}/lib:${lib.dir}/native/${build.platform}&quot;/&gt;
       &lt;classpath refid=&quot;test.hdfs.with.mr.classpath&quot;/&gt;
       &lt;formatter type=&quot;${test.junit.output.format}&quot; /&gt;
       &lt;batchtest todir=&quot;${test.build.dir}&quot; unless=&quot;testcase&quot;&gt;
@@ -520,7 +541,7 @@
     &lt;/subant&gt; 
   &lt;/target&gt;
 
-  &lt;target name=&quot;test-core&quot; description=&quot;Run hdfs, hdfs with mapred unit tests&quot;&gt;
+  &lt;target name=&quot;test-core&quot; description=&quot;Run core, hdfs and mapred unit tests&quot;&gt;
     &lt;delete file=&quot;${test.build.dir}/testsfailed&quot;/&gt;
     &lt;property name=&quot;continueOnFailure&quot; value=&quot;true&quot;/&gt;
     &lt;antcall target=&quot;run-test-hdfs&quot;/&gt;
@@ -810,7 +831,7 @@
     &lt;copy todir=&quot;${dist.dir}&quot;&gt; 
       &lt;fileset file=&quot;${build.dir}/${final.name}-*.jar&quot;/&gt;
     &lt;/copy&gt;
-    
+
     &lt;copy todir=&quot;${dist.dir}/conf&quot;&gt;
       &lt;fileset dir=&quot;${conf.dir}&quot; excludes=&quot;**/*.template&quot;/&gt;
     &lt;/copy&gt;
@@ -837,6 +858,12 @@
 
     &lt;copy todir=&quot;${dist.dir}/&quot; file=&quot;build.xml&quot;/&gt;
 
+    &lt;chmod perm=&quot;ugo+x&quot; type=&quot;file&quot; parallel=&quot;false&quot;&gt;
+        &lt;fileset dir=&quot;${dist.dir}/src/contrib/&quot;&gt;
+          &lt;include name=&quot;*/bin/*&quot; /&gt;
+        &lt;/fileset&gt;
+    &lt;/chmod&gt;
+
   &lt;/target&gt;
 
   &lt;!-- ================================================================== --&gt;
@@ -846,17 +873,11 @@
     &lt;macro_tar param.destfile=&quot;${build.dir}/${final.name}.tar.gz&quot;&gt;
       &lt;param.listofitems&gt;
         &lt;tarfileset dir=&quot;${build.dir}&quot; mode=&quot;664&quot;&gt;
-          &lt;exclude name=&quot;${final.name}/bin/*&quot; /&gt;
           &lt;exclude name=&quot;${final.name}/contrib/*/bin/*&quot; /&gt;
-          &lt;exclude name=&quot;${final.name}/src/contrib/ec2/bin/*&quot; /&gt;
-          &lt;exclude name=&quot;${final.name}/src/contrib/ec2/bin/image/*&quot; /&gt;
           &lt;include name=&quot;${final.name}/**&quot; /&gt;
         &lt;/tarfileset&gt;
         &lt;tarfileset dir=&quot;${build.dir}&quot; mode=&quot;755&quot;&gt;
-          &lt;include name=&quot;${final.name}/bin/*&quot; /&gt;
           &lt;include name=&quot;${final.name}/contrib/*/bin/*&quot; /&gt;
-          &lt;include name=&quot;${final.name}/src/contrib/ec2/bin/*&quot; /&gt;
-          &lt;include name=&quot;${final.name}/src/contrib/ec2/bin/image/*&quot; /&gt;
         &lt;/tarfileset&gt;
       &lt;/param.listofitems&gt;
     &lt;/macro_tar&gt;
@@ -867,7 +888,6 @@
     &lt;mkdir dir=&quot;${dist.dir}&quot;/&gt;
     &lt;mkdir dir=&quot;${dist.dir}/lib&quot;/&gt;
     &lt;mkdir dir=&quot;${dist.dir}/contrib&quot;/&gt;
-    &lt;mkdir dir=&quot;${dist.dir}/bin&quot;/&gt;
 
     &lt;copy todir=&quot;${dist.dir}/lib&quot; includeEmptyDirs=&quot;false&quot; flatten=&quot;true&quot;&gt;
       &lt;fileset dir=&quot;${common.ivy.lib.dir}&quot;/&gt;
@@ -894,7 +914,7 @@
     &lt;copy todir=&quot;${dist.dir}&quot;&gt; 
       &lt;fileset file=&quot;${build.dir}/${final.name}-*.jar&quot;/&gt;
     &lt;/copy&gt;
-
+    
     &lt;copy todir=&quot;${dist.dir}/conf&quot;&gt;
       &lt;fileset dir=&quot;${conf.dir}&quot; excludes=&quot;**/*.template&quot;/&gt;
     &lt;/copy&gt;
@@ -924,6 +944,9 @@
           &lt;exclude name=&quot;${final.name}/docs/**&quot; /&gt;
           &lt;include name=&quot;${final.name}/**&quot; /&gt;
         &lt;/tarfileset&gt;
+        &lt;tarfileset dir=&quot;${build.dir}&quot; mode=&quot;755&quot;&gt;
+          &lt;include name=&quot;${final.name}/bin/*&quot; /&gt;
+        &lt;/tarfileset&gt;
       &lt;/param.listofitems&gt;
     &lt;/macro_tar&gt;
   &lt;/target&gt;
@@ -957,7 +980,7 @@
         &lt;fileset file=&quot;src/contrib/build.xml&quot;/&gt;
      &lt;/subant&gt;  	
   &lt;/target&gt;
-	
+
   &lt;target name=&quot;compile-ant-tasks&quot; depends=&quot;compile-core&quot;&gt;
     &lt;javac
         encoding=&quot;${build.encoding}&quot;
@@ -1286,5 +1309,4 @@
   &lt;target name=&quot;published&quot; depends=&quot;ivy-publish-local,maven-artifacts&quot;&gt;
 
   &lt;/target&gt;
-
 &lt;/project&gt;</diff>
      <filename>build.xml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2320bd5fe170ad1b989f95d7a3eeb9466bef8311</id>
    </parent>
  </parents>
  <author>
    <name>Giridharan Kesavan</name>
    <email>gkesavan@apache.org</email>
  </author>
  <url>http://github.com/andrewmccall/hadoop-hdfs/commit/9b0eb654b218331a61a8017ce154f87509ccd445</url>
  <id>9b0eb654b218331a61a8017ce154f87509ccd445</id>
  <committed-date>2009-06-01T10:16:45-07:00</committed-date>
  <authored-date>2009-06-01T10:16:45-07:00</authored-date>
  <message>build.xml cleanup

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/HADOOP-4687/hdfs@780731 13f79535-47bb-0310-9956-ffa450edef68</message>
  <tree>4d54caae9f2c072ac1745a9c8c405d1248bb1ba1</tree>
  <committer>
    <name>Giridharan Kesavan</name>
    <email>gkesavan@apache.org</email>
  </committer>
</commit>
