aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-06-18 21:47:48 -0400
committerJames Moger <james.moger@gmail.com>2012-06-18 21:47:48 -0400
commit667d1cdef4b465dcaedb5a9544c47b031ae5505d (patch)
treebac1dda532e73498c632fb4e44024c4b2d5430fe
parent86adef7baca4fce4989b05477ac7d63af7a82777 (diff)
downloadiciql-667d1cdef4b465dcaedb5a9544c47b031ae5505d.tar.gz
iciql-667d1cdef4b465dcaedb5a9544c47b031ae5505d.zip
Restored build properties with an is available check
-rw-r--r--build.xml19
1 files changed, 15 insertions, 4 deletions
diff --git a/build.xml b/build.xml
index 3c599fb..d827024 100644
--- a/build.xml
+++ b/build.xml
@@ -9,16 +9,27 @@
<property name="project.build.dir" value="${basedir}/build" />
<property name="project.site.dir" value="${basedir}/site" />
- <!-- Load publication servers, paths, and credentials -->
- <!--<loadproperties srcfile="${basedir}/build.properties" />-->
-
+ <available property="hasBuildProps" file="${basedir}/build.properties"/>
<!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Load build.properties, if available
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ -->
+ <target name="buildprops" if="hasBuildProps">
+ <!-- Load publication servers, paths, and credentials -->
+ <loadproperties>
+ <file file="${basedir}/build.properties" />
+ </loadproperties>
+ </target>
+
+
+ <!--
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scrape the version info from code and setup the build properties
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
- <target name="buildinfo">
+ <target name="buildinfo" depends="buildprops">
<!-- extract iciql version number from source code -->
<loadfile property="iq.version" srcfile="${basedir}/src/com/iciql/Constants.java">