labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1426435 - in /labs/alike/trunk: build.properties build.xml
Date Fri, 28 Dec 2012 08:55:02 GMT
Author: koji
Date: Fri Dec 28 08:55:01 2012
New Revision: 1426435

URL: http://svn.apache.org/viewvc?rev=1426435&view=rev
Log:
unjar jar file when hadoop job packaging

Modified:
    labs/alike/trunk/build.properties
    labs/alike/trunk/build.xml

Modified: labs/alike/trunk/build.properties
URL: http://svn.apache.org/viewvc/labs/alike/trunk/build.properties?rev=1426435&r1=1426434&r2=1426435&view=diff
==============================================================================
--- labs/alike/trunk/build.properties (original)
+++ labs/alike/trunk/build.properties Fri Dec 28 08:55:01 2012
@@ -4,6 +4,7 @@ PRODUCT_VERSION        = 0.1
 src.dir                = src
 lib.dir                = lib
 cls.dir                = classes
+job.dir                = job
 javadoc.dir            = api
 test.cls.dir           = test-classes
 test.result.dir        = test-result

Modified: labs/alike/trunk/build.xml
URL: http://svn.apache.org/viewvc/labs/alike/trunk/build.xml?rev=1426435&r1=1426434&r2=1426435&view=diff
==============================================================================
--- labs/alike/trunk/build.xml (original)
+++ labs/alike/trunk/build.xml Fri Dec 28 08:55:01 2012
@@ -88,17 +88,21 @@
     </target>
 
     <target name="alike-dist" depends="alike-compile" description="make a package for
distributed job on hadoop cluster">
-        <delete dir="${cls.dir}/lib"/>
-        <mkdir dir="${cls.dir}/lib"/>
-        <copy todir="${cls.dir}/lib">
+        <delete dir="${job.dir}"/>
+        <mkdir dir="${job.dir}"/>
+        <copy todir="${job.dir}">
+            <fileset dir="${cls.dir}"/>
+	</copy>
+        <unjar dest="${job.dir}">
             <fileset dir="${lib.dir}">
               <include name="**/*.jar"/>
+              <exclude name="hadoop-*.jar"/>
               <exclude name="*-javadoc.jar"/>
               <exclude name="*-sources.jar"/>
             </fileset>
-        </copy>
+        </unjar>
         <jar destfile="${product.job}" update="false">
-            <fileset dir="${cls.dir}"/>
+            <fileset dir="${job.dir}"/>
         </jar>
     </target>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message