Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving common settings and tasks into build-common.xml and adding a b…
…uild.version param
- Loading branch information
Bill Graham
committed
Jan 24, 2013
1 parent
6526e48
commit f1fb0aa
Showing
5 changed files
with
54 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?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. | ||
--> | ||
|
||
<!-- 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 = "${basedir}/../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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters