diff options
-rw-r--r-- | build.xml | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -114,11 +114,16 @@ list of possible build targets. <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 @@ list of possible build targets. <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 @@ list of possible build targets. <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 --> |