Skip to content
Browse files

Adding support for a default .build.properties file

  • Loading branch information...
1 parent f1fb0aa commit e88b7b1828d3335c11f2ea64a6547e1a2e59f7c5 @billonahill billonahill committed Jan 25, 2013
Showing with 6 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 build-common.xml
View
1 .gitignore
@@ -2,4 +2,5 @@ hadoop-connector/build
hadoop-example/build
pig-connector/build
squeal/build
+.build.properties
View
7 build-common.xml
@@ -3,13 +3,16 @@
<!--
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 = "${basedir}/../hadoop-connector/build/hadoop-connector/jar/hadoop-vertica-${build.version}.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">
@@ -35,4 +38,4 @@
</condition>
</fail>
</target>
-</project>
+</project>

0 comments on commit e88b7b1

Please sign in to comment.
Something went wrong with that request. Please try again.