aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authoreschaeffer <eschaeffer@unknown>2000-11-29 11:30:11 +0000
committereschaeffer <eschaeffer@unknown>2000-11-29 11:30:11 +0000
commit2c3b4812600c82ec4bbe5a02b500f691b19d608e (patch)
tree151b02503c576a15f2e3543486a53a25a4f3f1fb /build.xml
parent6d47baba0cf8c94d11bcff8fcacf1c4c049d8be0 (diff)
downloadxmlgraphics-fop-2c3b4812600c82ec4bbe5a02b500f691b19d608e.tar.gz
xmlgraphics-fop-2c3b4812600c82ec4bbe5a02b500f691b19d608e.zip
add JAI target (doesn't compile JAI image class if not present).
Patch from Kelly Campbell. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 777aa1fb1..2ddcfc2e7 100644
--- a/build.xml
+++ b/build.xml
@@ -154,6 +154,7 @@ Sometimes ant gives out this warnings, but the build is finished without any pro
<property name="replacestring" value="org/apache/fop"/>
<property name="ignore_this" value="ignore_this.java"/>
<property name="jimi" value="JimiImage.java"/>
+ <property name="jai" value="JAIImage.java"/>
<property name="ignore_jdk11"
value="org/apache/fop/render/awt/**
@@ -199,6 +200,7 @@ Sometimes ant gives out this warnings, but the build is finished without any pro
<taskdef name="xslt" classname="Xslt"/>
<available property="xt.present" classname="com.jclark.xsl.sax.XSLProcessor"/>
<available property="jimi.present" classname="com.sun.jimi.core.Jimi"/>
+ <available property="jai.present" classname="javax.media.jai.JAI"/>
<filter token="${replacestring}" value="${build.src}/${replacestring}"/>
</target>
@@ -261,14 +263,24 @@ Sometimes ant gives out this warnings, but the build is finished without any pro
includes="**/${jimi}"/>
</target>
+ <!-- copies special image class only if JAI library is present -->
+ <!-- =================================================================== -->
+ <target name="prepare-jai" depends="prepare" if="jai.present">
+ <echo message="JAI library is present. Fop installs JAI support."/>
+ <copydir src="${src.dir}"
+ dest="${build.src}"
+ includes="**/${jai}"/>
+ </target>
+
+
<!-- =================================================================== -->
<!-- Prepares the source code -->
<!-- =================================================================== -->
- <target name="prepare-src" depends="prepare, prepare-xt, prepare-jimi">
+ <target name="prepare-src" depends="prepare, prepare-xt, prepare-jimi, prepare-jai">
<!-- copy src files -->
<copydir src="${src.dir}"
dest="${build.src}"
- excludes="**/Makefile*, **/package.html, **/XT*,**/PDFOutputHandler.java,**/${jimi}"/>
+ excludes="**/Makefile*, **/package.html, **/XT*,**/PDFOutputHandler.java,**/${jimi},**/${jai}"/>
</target>
<!-- =================================================================== -->