]> source.dussan.org Git - iciql.git/commitdiff
Restored build properties with an is available check
authorJames Moger <james.moger@gmail.com>
Tue, 19 Jun 2012 01:47:48 +0000 (21:47 -0400)
committerJames Moger <james.moger@gmail.com>
Tue, 19 Jun 2012 01:47:48 +0000 (21:47 -0400)
build.xml

index 3c599fbe08db9c966c272cc92a5c314796d63593..d82702441d9bda2a90755cb59ca86b4fb680adfa 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -9,16 +9,27 @@
        <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