db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1523858 - /db/derby/docs/trunk/build.xml
Date Tue, 17 Sep 2013 00:40:28 GMT
Author: myrnavl
Date: Tue Sep 17 00:40:27 2013
New Revision: 1523858

URL: http://svn.apache.org/r1523858
Log:
DERBY-4847; Errors should be displayed if using wrong CLASSPATH to make documentation target
for release
  Making the build fail and displaying a message if fop.jar is missing from the CLASSPATH
and an attempt is made to build pdf files.

Modified:
    db/derby/docs/trunk/build.xml

Modified: db/derby/docs/trunk/build.xml
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/build.xml?rev=1523858&r1=1523857&r2=1523858&view=diff
==============================================================================
--- db/derby/docs/trunk/build.xml (original)
+++ db/derby/docs/trunk/build.xml Tue Sep 17 00:40:27 2013
@@ -210,8 +210,17 @@ limitations under the License.
     </antcall>
   </target>
     
+  <target name="check.fop" unless="hasFOP">
+    <!-- generating pdf files require fop.jar in the classpath -->
+    <!-- see dita.dir/conductor.xml, which gets deleted with ant clobber -->
+    <!-- That file however does not look for fop.jar in any good place, so -->
+    <!-- fail if classpath does not include fop.jar if we're doing pdfs -->
+    <fail message="Failed: DITA needs the basedir/lib/fop.jar in the classpath to build
pdf files, see DERBY-4847"/>
+  </target>
+ 
   <target name="pdf.dita">
     <!-- replace tokens with release variables -->
+    <antcall target="check.fop"/>
     <antcall target="preprocess"/>
 
     <mkdir dir="${dita.dir}/temp"/>



Mime
View raw message