Quellcode durchsuchen

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.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@823685 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_0
Adrian Cumiskey vor 14 Jahren
Ursprung
Commit
f6a828b695
1 geänderte Dateien mit 15 neuen und 1 gelöschten Zeilen
  1. 15
    1
      build.xml

+ 15
- 1
build.xml Datei anzeigen

@@ -1234,10 +1234,24 @@ NOTE:
<!-- 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}"/>

Laden…
Abbrechen
Speichern