incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1302817 - /incubator/lcf/trunk/build.xml
Date Tue, 20 Mar 2012 10:12:55 GMT
Author: kwright
Date: Tue Mar 20 10:00:54 2012
New Revision: 1302817

URL: http://svn.apache.org/viewvc?rev=1302817&view=rev
Log:
Report build error when site does not build.

Modified:
    incubator/lcf/trunk/build.xml

Modified: incubator/lcf/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/build.xml?rev=1302817&r1=1302816&r2=1302817&view=diff
==============================================================================
--- incubator/lcf/trunk/build.xml (original)
+++ incubator/lcf/trunk/build.xml Tue Mar 20 10:00:54 2012
@@ -124,6 +124,14 @@
       <ant dir="site" target="all"/>
     </target>
     
+    <target name="check-site-built" depends="build-site">
+      <available file="site/build/site" type="dir" property="site-exists"/>
+    </target>
+
+    <target name="presite-check" depends="check-site-built" unless="site-exists">
+      <echo message="Site did not build.  Was FORREST_HOME set properly?"/>
+    </target>
+    
     <target name="build-json">
         <mkdir dir="build/json/classes"/>
         <javac srcdir="json" destdir="build/json/classes" target="1.5" source="1.4" debug="true"
debuglevel="lines,vars,source">
@@ -938,7 +946,7 @@
     </target>
 
 
-    <target name="deliver-site-doc" depends="build-site">
+    <target name="deliver-site-doc" depends="presite-check" if="site-exists">
           <mkdir dir="dist/doc"/>
           <copy todir="dist/doc">
               <fileset dir="site/build/site">



Mime
View raw message