forked from Timpy/RDFpig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
43 lines (35 loc) · 1.31 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="querypie" default="jar" basedir=".">
<property name="BUILD_PATH" value="build" />
<property name="SRC_PATH" value="src" />
<property name="LIB_PATH" value="lib" />
<property name="CONF_PATH" value="conf" />
<property name="JAR_LOCATION" value="RDFPig.jar" />
<property name="LOG_PATH" value="${LIB_PATH}/logging/" />
<property name="JAR_REMOTE_LOCATION" value="" />
<property name="SCP_PRIVATE_KEY" value="" />
<property name="SCP_PASSPHRASE" value="" />
<target name="clean">
<delete dir="${BUILD_PATH}" />
</target>
<target name="init">
<mkdir dir="${BUILD_PATH}" />
</target>
<target name="compile" depends="init" description="">
<javac srcdir="${SRC_PATH}" destdir="${BUILD_PATH}" debug="true">
<classpath>
<fileset dir="${LIB_PATH}">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${JAR_LOCATION}" basedir="${BUILD_PATH}">
<zipgroupfileset dir="lib" includes="*.jar,elephant-bird/*.jar" />
</jar>
</target>
<target name="deploy" depends="jar" description="Copy the jar on the cluster">
<scp file="${JAR_LOCATION}" todir="${JAR_REMOTE_LOCATION}" keyfile="${SCP_PRIVATE_KEY}" passphrase="${SCP_PASSPHRASE}" trust="true" />
</target>
</project>