<property name="project.build.dir" value="${basedir}/build" />\r
<property name="project.site.dir" value="${basedir}/site" />\r
\r
- <!-- Load publication servers, paths, and credentials --> \r
- <!--<loadproperties srcfile="${basedir}/build.properties" />-->\r
- \r
+ <available property="hasBuildProps" file="${basedir}/build.properties"/>\r
\r
+ <!--\r
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
+ Load build.properties, if available\r
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
+ -->\r
+ <target name="buildprops" if="hasBuildProps">\r
+ <!-- Load publication servers, paths, and credentials --> \r
+ <loadproperties>\r
+ <file file="${basedir}/build.properties" />\r
+ </loadproperties>\r
+ </target> \r
+\r
+\r
<!--\r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
Scrape the version info from code and setup the build properties \r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
-->\r
- <target name="buildinfo">\r
+ <target name="buildinfo" depends="buildprops">\r
\r
<!-- extract iciql version number from source code -->\r
<loadfile property="iq.version" srcfile="${basedir}/src/com/iciql/Constants.java">\r