hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muk...@apache.org
Subject svn commit: r664210 - in /hadoop/core/trunk: ./ src/benchmarks/ src/benchmarks/gridmix/ src/core/ src/core/org/ src/core/org/apache/ src/core/org/apache/hadoop/ src/core/org/apache/hadoop/dfs/ src/core/org/apache/hadoop/mapred/ src/hdfs/ src/hdfs/org/ ...
Date Sat, 07 Jun 2008 00:29:20 GMT
Author: mukund
Date: Fri Jun  6 17:29:20 2008
New Revision: 664210

URL: http://svn.apache.org/viewvc?rev=664210&view=rev
Log:
HADOOP-2916. Refactor src structure, but leave package structure alone. (Raghu Angadi via
mukund)

Added:
    hadoop/core/trunk/src/benchmarks/
    hadoop/core/trunk/src/benchmarks/gridmix/
      - copied from r664208, hadoop/core/trunk/src/test/gridmix/
    hadoop/core/trunk/src/core/
    hadoop/core/trunk/src/core/org/
    hadoop/core/trunk/src/core/org/apache/
    hadoop/core/trunk/src/core/org/apache/hadoop/
      - copied from r664208, hadoop/core/trunk/src/java/org/apache/hadoop/
    hadoop/core/trunk/src/core/overview.html
      - copied unchanged from r664208, hadoop/core/trunk/src/java/overview.html
    hadoop/core/trunk/src/hdfs/
    hadoop/core/trunk/src/hdfs/org/
    hadoop/core/trunk/src/hdfs/org/apache/
    hadoop/core/trunk/src/hdfs/org/apache/hadoop/
    hadoop/core/trunk/src/hdfs/org/apache/hadoop/dfs/
      - copied from r664208, hadoop/core/trunk/src/java/org/apache/hadoop/dfs/
    hadoop/core/trunk/src/mapred/
    hadoop/core/trunk/src/mapred/org/
    hadoop/core/trunk/src/mapred/org/apache/
    hadoop/core/trunk/src/mapred/org/apache/hadoop/
    hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/
      - copied from r664208, hadoop/core/trunk/src/java/org/apache/hadoop/mapred/
Removed:
    hadoop/core/trunk/src/core/org/apache/hadoop/dfs/
    hadoop/core/trunk/src/core/org/apache/hadoop/mapred/
    hadoop/core/trunk/src/java/
    hadoop/core/trunk/src/test/gridmix/
Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/build.xml

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=664210&r1=664209&r2=664210&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Jun  6 17:29:20 2008
@@ -270,6 +270,9 @@
     HADOOP-3366. Stall the shuffle while in-memory merge is in progress.
     (acmurthy) 
 
+    HADOOP-2916. Refactor src structure, but leave package structure alone.
+    (Raghu Angadi via mukund) 
+
   OPTIMIZATIONS
 
     HADOOP-3274. The default constructor of BytesWritable creates empty 

Modified: hadoop/core/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/build.xml?rev=664210&r1=664209&r2=664210&view=diff
==============================================================================
--- hadoop/core/trunk/build.xml (original)
+++ hadoop/core/trunk/build.xml Fri Jun  6 17:29:20 2008
@@ -31,7 +31,10 @@
   <property name="year" value="2006"/>
   <property name="libhdfs.version" value="1"/>
 
-  <property name="src.dir" value="${basedir}/src/java"/>
+  <property name="src.dir" value="${basedir}/src"/>  	
+  <property name="core.src.dir" value="${src.dir}/core"/>
+  <property name="mapred.src.dir" value="${src.dir}/mapred"/> 
+  <property name="hdfs.src.dir" value="${src.dir}/hdfs"/>
   <property name="native.src.dir" value="${basedir}/src/native"/>
   <property name="examples.dir" value="${basedir}/src/examples"/>
   <property name="anttasks.dir" value="${basedir}/src/ant"/>
@@ -242,8 +245,8 @@
 
   <target name="record-parser" depends="init" if="javacc.home">
       <javacc
-          target="${src.dir}/org/apache/hadoop/record/compiler/generated/rcc.jj"
-          outputdirectory="${src.dir}/org/apache/hadoop/record/compiler/generated"
+          target="${core.src.dir}/org/apache/hadoop/record/compiler/generated/rcc.jj"
+          outputdirectory="${core.src.dir}/org/apache/hadoop/record/compiler/generated"
           javacchome="${javacc.home}"
       />
   </target>
@@ -251,7 +254,7 @@
   <target name="compile-rcc-compiler" depends="init, record-parser">
     <javac 
         encoding="${build.encoding}" 
-        srcdir="${src.dir}"
+        srcdir="${core.src.dir}"
         includes="org/apache/hadoop/record/compiler/**/*.java"
         destdir="${build.classes}"
         debug="${javac.debug}"
@@ -268,7 +271,6 @@
     </taskdef>
   </target>
   
-  
   <target name="compile-core-classes" depends="init, compile-rcc-compiler">
 
     <jsp-compile
@@ -302,7 +304,7 @@
     <!-- Compile Java files (excluding JSPs) checking warnings -->
     <javac 
      encoding="${build.encoding}" 
-     srcdir="${src.dir};${build.src}"
+     srcdir="${core.src.dir};${mapred.src.dir};${hdfs.src.dir};${build.src}"
      includes="org/apache/hadoop/**/*.java"
      destdir="${build.classes}"
      debug="${javac.debug}"
@@ -315,10 +317,9 @@
     </javac>   
   	
     <copy todir="${build.classes}">
-      <fileset 
-        dir="${src.dir}" 
-        includes="**/*.properties"
-      />
+      <fileset dir="${core.src.dir}" includes="**/*.properties"/>
+      <fileset dir="${mapred.src.dir}" includes="**/*.properties"/>
+      <fileset dir="${hdfs.src.dir}" includes="**/*.properties"/>  		
     </copy>
      
 
@@ -673,7 +674,9 @@
   	
   	<checkstyle config="${test.src.dir}/checkstyle.xml"
   		failOnViolation="false">
-      <fileset dir="${src.dir}" includes="**/*.java" excludes="**/generated/**"/>
+      <fileset dir="${core.src.dir}" includes="**/*.java" excludes="**/generated/**"/>
+      <fileset dir="${mapred.src.dir}" includes="**/*.java" excludes="**/generated/**"/>
+      <fileset dir="${hdfs.src.dir}" includes="**/*.java" excludes="**/generated/**"/>
 		
       <formatter type="xml" toFile="${test.build.dir}/checkstyle-errors.xml"/>
   	</checkstyle>
   	
@@ -711,7 +714,9 @@
           <include name="**/*.jar"/>
         </fileset>
       </auxClasspath>
-      <sourcePath path="${src.dir}" />
+      <sourcePath path="${core.src.dir}"/>
+      <sourcePath path="${mapred.src.dir}"/>
+      <sourcePath path="${hdfs.src.dir}"/>  	
       <sourcePath path="${examples.dir}" />
       <sourcePath path="${basedir}/src/contrib/streaming/src/java" />
       <class location="${basedir}/build/hadoop-${version}-core.jar" />
@@ -750,7 +755,7 @@
   <target name="javadoc" description="Generate javadoc">
     <mkdir dir="${build.javadoc}"/>
     <javadoc
-      overview="${src.dir}/overview.html"
+      overview="${core.src.dir}/overview.html"
       packagenames="org.apache.hadoop.*"
       destdir="${build.javadoc}"
       author="true"
@@ -760,7 +765,9 @@
       doctitle="${Name} ${version} API"
       bottom="Copyright &amp;copy; ${year} The Apache Software Foundation"
       >
-    	<packageset dir="${src.dir}"/>
+        <packageset dir="${core.src.dir}"/>
+        <packageset dir="${mapred.src.dir}"/>
+        <packageset dir="${hdfs.src.dir}"/>        	
     	<packageset dir="${examples.dir}"/>
 
     	<packageset dir="src/contrib/streaming/src/java"/>



Mime
View raw message