فهرست منبع

commit fbbf99c956ee239c78132e3033d8ed80fe667c9f
Author: Yahoo\! <ltucker@yahoo-inc.com>
Date: Tue Feb 2 13:31:52 2010 -0800

HADOOP-6382 from http://issues.apache.org/jira/secure/attachment/12430016/hadoop-6382-v1.patch


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077193 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 سال پیش
والد
کامیت
bfd9911a61
1فایلهای تغییر یافته به همراه9 افزوده شده و 5 حذف شده
  1. 9 5
      build.xml

+ 9 - 5
build.xml

@@ -601,6 +601,7 @@
     <tar compression="gzip" destfile="${build.classes}/bin.tgz">
       <tarfileset dir="bin" mode="755"/>
     </tar>
+
     <property name="jar.properties.list"
       value="commons-logging.properties, log4j.properties, hadoop-metrics.properties"/>
     <jar jarfile="${build.dir}/${core.final.name}.jar"
@@ -624,10 +625,13 @@
   <!--                                                                    -->
   <!-- ================================================================== -->
   <target name="examples" depends="jar, compile-examples" description="Make the Hadoop examples jar.">
-    <macro-jar-examples
-      build.dir="${build.dir}"
-      basedir="${build.examples}">
-    </macro-jar-examples>
+    <jar jarfile="${build.dir}/${examples.final.name}.jar"
+         basedir="${build.examples}">
+      <manifest>
+        <attribute name="Main-Class" 
+                   value="org/apache/hadoop/examples/ExampleDriver"/>
+      </manifest>
+    </jar>
   </target>
 
   <macrodef name="macro-jar-examples">
@@ -1486,7 +1490,7 @@
   <!-- ================================================================== -->
   <!-- Clean.  Delete the build files, and their directories              -->
   <!-- ================================================================== -->
-  <target name="clean" depends="clean-contrib, clean-sign, clean-fi" description="Clean.  Delete the build files, and their directories">
+  <target name="clean" depends="clean-contrib, clean-sign" description="Clean.  Delete the build files, and their directories">
     <delete dir="${build.dir}"/>
     <delete dir="${docs.src}/build"/>
     <delete dir="${src.docs.cn}/build"/>