<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>
<!-- =================================================================== -->
<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>
<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 -->