Author: acumiskey
Date: Fri Oct 9 20:59:11 2009
New Revision: 823685
URL: http://svn.apache.org/viewvc?rev=823685&view=rev
Log:
If a JAI library is not available when creating a FOP distribution build we
attempt to download one and make it available to the Ant build process.
Modified:
xmlgraphics/fop/trunk/build.xml
Modified: xmlgraphics/fop/trunk/build.xml
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/build.xml?rev=823685&r1=823684&r2=823685&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/build.xml (original)
+++ xmlgraphics/fop/trunk/build.xml Fri Oct 9 20:59:11 2009
@@ -1234,10 +1234,24 @@
<!-- Creates the distribution -->
<!-- =================================================================== -->
<target name="dist" depends="dist-prereq,dist-src,dist-bin"
description="Generates the distribution package"/>
- <target name="dist-prereq" depends="init">
+ <target name="dist-prereq" depends="init,dist-get-jai">
<fail message="A complete binary build requires JAI" unless="jai.present"/>
<fail message="A complete binary build requires JCE" unless="jce.present"/>
</target>
+ <target name="dist-get-jai" description="Attempts to download the JAI
library dependency" unless="jai.present">
+ <echo message="JAI Support NOT present - attempting to download... "/>
+ <get
src="http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib.zip"
dest="${java.io.tmpdir}/jai-1_1_3-lib.zip" verbose="true" />
+ <unzip src="${java.io.tmpdir}/jai-1_1_3-lib.zip" dest="${java.io.tmpdir}">
+ <patternset>
+ <include name="jai-1_1_3/lib/*"/>
+ </patternset>
+ </unzip>
+ <copy todir="${basedir}/lib"
file="${java.io.tmpdir}/jai-1_1_3/lib/jai_core.jar" />
+ <copy todir="${basedir}/lib"
file="${java.io.tmpdir}/jai-1_1_3/lib/jai_codec.jar" />
+ <delete dir="${java.io.tmpdir}/jai-1_1_3" />
+ <delete file="${java.io.tmpdir}/jai-1_1_3-lib.zip" />
+ <property name="jai.present" value="true"/>
+ </target>
<target name="dist-bin" depends="all,javadocs,docs">
<echo message="Building the binary distribution files (zip,tar)"/>
<mkdir dir="${dist.bin.result.dir}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]