-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
52 lines (42 loc) · 1.43 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="clustering" basedir=".">
<property file="build.properties" />
<path id="compile.classpath">
<!-- default: include all libs from the lib directory -->
<fileset dir="${dir.lib}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="prepare" description="Prepares the build process">
<mkdir dir="${dir.dist}" />
<mkdir dir="${dir.classes}" />
</target>
<target name="compile"
depends="prepare"
description="Compiles the sources">
<javac srcdir="${dir.src}"
destdir="${dir.classes}"
includes="**/*.java"
classpathref="compile.classpath"
debug="true"
deprecation="true" />
</target>
<target name="clean"
description="Delete generated resources">
<delete dir="${dir.classes}" />
<delete dir="${dir.dist}" />
<delete dir="out" />
</target>
<target name="make-jar"
depends="compile">
<jar destfile="${dir.dist}/${project.name}.jar"
basedir="${dir.classes}">
<manifest>
<attribute name="Main-Class" value="de.myhpi.dbpedia_clustering.ClusterDriver"/>
</manifest>
</jar>
</target>
<target name="deploy-on-server" depends="make-jar" description="copy JAR to hadoop server">
<scp file="${dir.dist}/${project.name}.jar" todir="${server.user}:${server.pwd}@${server.ip}:${server.dir}" trust="true"/>
</target>
</project>