diff options
author | James Moger <james.moger@gmail.com> | 2012-06-18 21:47:48 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2012-06-18 21:47:48 -0400 |
commit | 667d1cdef4b465dcaedb5a9544c47b031ae5505d (patch) | |
tree | bac1dda532e73498c632fb4e44024c4b2d5430fe | |
parent | 86adef7baca4fce4989b05477ac7d63af7a82777 (diff) | |
download | iciql-667d1cdef4b465dcaedb5a9544c47b031ae5505d.tar.gz iciql-667d1cdef4b465dcaedb5a9544c47b031ae5505d.zip |
Restored build properties with an is available check
-rw-r--r-- | build.xml | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -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">
|