forked from giagiannis/anonymization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
47 lines (41 loc) · 1.69 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
<project name="anonymization" default="jar" basedir=".">
<description>buildfile for anonymization project</description>
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="jar" location="$HOME/anonymity.jar"/>
<target name="init" description="creates necessary dirs">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${bin}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac classpath="/opt/hadoop-1.0.4/" srcdir="${src}" destdir="${bin}" includeantruntime="true">
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="/opt/hadoop-1.0.4/hadoop-ant-1.0.4.jar"/>
<pathelement location="/opt/hadoop-1.0.4/hadoop-ant-1.0.4.jar"/>
<pathelement location="/opt/hadoop-1.0.4/hadoop-client-1.0.4.jar"/>
<pathelement location="/opt/hadoop-1.0.4/hadoop-core-1.0.4.jar"/>
<pathelement location="/opt/hadoop-1.0.4/hadoop-test-1.0.4.jar"/>
<pathelement location="/opt/hadoop-1.0.4/hadoop-tools-1.0.4.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile" description="creates the jar file">
<jar destfile="${jar}" basedir="${bin}"></jar>
</target>
<target name="scp" depends="jar">
<exec failonerror="true" executable="scp" >
<arg value="${jar}"/>
<arg value="${remote}"/>
</exec>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${bin}" />
<delete file="${jar}"/>
</target>
</project>