jeremias 2003/03/13 08:47:20
Modified: . build.xml
Log:
Updated for optional PDF encryption support (depending on availability of JCE)
Revision Changes Path
1.78 +17 -1 xml-fop/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-fop/build.xml,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- build.xml 12 Mar 2003 09:34:59 -0000 1.77
+++ build.xml 13 Mar 2003 16:47:20 -0000 1.78
@@ -114,11 +114,16 @@
<exclude name="org/apache/fop/image/JAIImage.java"/>
</patternset>
+ <patternset id="exclude-jce-dependencies">
+ <exclude name="org/apache/fop/pdf/PDFEncryptionJCE.java"/>
+ </patternset>
+
<patternset id="base-sources">
<include name="**/*.java"/>
<exclude name="**/*${ignore_this}"/>
<patternset refid="exclude-jimi"/>
<patternset refid="exclude-jai"/>
+ <patternset refid="exclude-jce-dependencies"/>
</patternset>
<!-- =================================================================== -->
@@ -228,6 +233,7 @@
<target name="init-avail">
<available property="jimi.present" classname="com.sun.jimi.core.Jimi"
classpathref="libs-build-classpath"/>
<available property="jai.present" classname="javax.media.jai.JAI"
classpathref="libs-build-classpath"/>
+ <available property="jce.present" classname="javax.crypto.Cipher"
classpathref="libs-build-classpath"/>
<available property="jdk14.present" classname="java.lang.CharSequence"/>
</target>
@@ -417,7 +423,17 @@
<include name="**/${jai}"/>
</javac>
</target>
- <target name="compile" depends="compile-src,compile-jimi,compile-jai"
description="Compiles the source code"/>
+
+ <target name="compile-jce" depends="compile-src" if="jce.present">
+ <echo message="JCE is present. Fop installs JCE-dependent classes (for PDF
encryption)."/>
+ <javac destdir="${build.dest}" debug="${debug}" deprecation="${deprecation}"
optimize="${optimize}">
+ <src path="${src.java}"/>
+ <classpath refid="libs-build-classpath"/>
+ <include name="**/pdf/PDFEncryptionJCE.java"/>
+ </javac>
+ </target>
+
+ <target name="compile" depends="compile-src,compile-jimi,compile-jai,compile-jce"
description="Compiles the source code"/>
<!-- =================================================================== -->
<!-- compiles hyphenation patterns -->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]