-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.xml
52 lines (42 loc) · 1.51 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<project default="jar">
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<scalac srcdir="src" destdir="build/classes" classpathref="classpath" deprecation="yes"/>
<javac srcdir="src" destdir="build/classes" classpathref="classpath"/>
<copy todir="build/classes/lib">
<fileset dir="/opt/local/share/scala-2.8/lib/" includes="scala-lib*"/>
</copy>
</target>
<target name="doc">
<mkdir dir="doc"/>
<scaladoc srcdir="src/ScalaHadoop" destdir="doc" classpathref="classpath">
<include name="*.scala"/>
<include name="*.java"/>
</scaladoc>
</target>
<target name="jar" depends="compile">
<jar destfile="ScalaHadoop.jar"
basedir="build/classes"
/>
</target>
<target name="run">
<exec executable="/Users/asimma/local/hadoop-0.20.2/bin/hadoop">
<arg line="jar ScalaHadoop.jar com.asimma.ScalaHadoop.WordCount"/>
</exec>
</target>
<path id="classpath">
<fileset dir="/Users/asimma/local/hadoop-0.20.2" includes="**/*.jar"/>
<fileset dir="/opt/local/share/scala-2.8/lib" includes="*.jar"/>
</path>
<property name="scala.lib.dir" location="/opt/local/share/scala-2.8/lib"/>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${scala.lib.dir}/scala-compiler.jar"/>
<pathelement location="${scala.lib.dir}/scala-library.jar"/>
<pathelement location="${scala.lib.dir}/scalap.jar"/>
</classpath>
</taskdef>
</project>