-
Notifications
You must be signed in to change notification settings - Fork 39
/
build-common.xml
41 lines (36 loc) · 1.44 KB
/
build-common.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="common">
<!--
Common build file for properties or tasks that should be shared across sub-project build files.
-->
<property name="projectroot" value = "${basedir}/.."/>
<property file="${projectroot}/.build.properties"/>
<!-- When making a versioned release, create a branch and change the build.version below -->
<property name="build.version" value = "SNAPSHOT" />
<!-- some common defaults -->
<property name="hadoop-connector.jar"
value = "${projectroot}/hadoop-connector/build/hadoop-connector/jar/hadoop-vertica-${build.version}.jar" />
<!-- These require targets could be done better with a single macro -->
<target name="requirehadoopdir">
<fail message="Property "hadoop.dir" needs to be set to a value">
<condition>
<or>
<equals arg1="${hadoop.dir}" arg2=""/>
<not><isset property="hadoop.dir"/></not>
<not><available file="${hadoop.dir}" type="dir"/></not>
</or>
</condition>
</fail>
</target>
<target name="requirepigjar">
<fail message="Property "pig.jar" needs to be set to a valid jar file">
<condition>
<or>
<equals arg1="${pig.jar}" arg2=""/>
<not><isset property="pig.jar"/></not>
<not><available file="${pig.jar}" type="file"/></not>
</or>
</condition>
</fail>
</target>
</project>