source: proiecte/HadoopJUnit/hadoop-0.20.1/src/benchmarks/gridmix2/build.xml @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1<?xml version="1.0" ?>
2<project default="main" basedir=".">
3    <property name="Name" value="gridmix"/>
4    <property name="version" value="0.1"/>
5    <property name="final.name" value="${name}-${version}"/>
6    <property name="year" value="2008"/>       
7        <property name="hadoop.dir" value="${basedir}/../../../"/>
8    <property name="lib.dir" value="${hadoop.dir}/lib"/>
9    <property name="src.dir" value="${basedir}/src"/>
10    <property name="conf.dir" value="${basedir}/conf"/>
11    <property name="docs.dir" value="${basedir}/docs"/>
12    <property name="build.dir" value="${basedir}/build"/>
13    <property name="dist.dir" value="${basedir}/dist"/>
14    <property name="build.classes" value="${build.dir}/classes"/>
15       
16    <target name="init">
17        <mkdir dir="${build.dir}"/>
18        <mkdir dir="${dist.dir}"/>
19    </target>
20
21    <target name="main" depends="init, compile, compress" description="Main target">
22        <echo>
23            Building the .jar files.
24        </echo>
25    </target>
26 
27    <target name="compile" depends="init" description="Compilation target">
28        <javac srcdir="src/java/" destdir="${build.dir}">
29                <classpath refid="classpath" />
30        </javac>
31    </target>
32       
33
34         <target name="compress" depends="compile" description="Compression target">
35              <jar jarfile="${build.dir}/gridmix.jar" basedir="${build.dir}" includes="**/*.class" />
36                   
37
38        <copy todir="." includeEmptyDirs="false">
39            <fileset dir="${build.dir}">
40                <exclude name="**" />
41                <include name="**/*.jar" />
42            </fileset>
43        </copy>
44    </target>
45
46 
47    <!-- ================================================================== -->
48    <!-- Clean.  Delete the build files, and their directories              -->
49    <!-- ================================================================== -->
50    <target name="clean" description="Clean.  Delete the build files, and their directories">
51      <delete dir="${build.dir}"/>
52      <delete dir="${dist.dir}"/>
53    </target>
54
55    <!-- the normal classpath -->
56    <path id="classpath">
57            <pathelement location="${build.classes}"/>
58            <fileset dir="${lib.dir}">
59               <include name="*.jar" />
60               <exclude name="**/excluded/" />
61            </fileset>
62            <fileset dir="${hadoop.dir}">
63               <include name="**.jar" />
64           <include name="contrib/streaming/*.jar" />
65            </fileset>
66    </path>
67</project>
Note: See TracBrowser for help on using the repository browser.