aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-03-13 16:47:20 +0000
committerJeremias Maerki <jeremias@apache.org>2003-03-13 16:47:20 +0000
commit8ba18ee237d243a972cbff2e8f77aff1a7d3a3ba (patch)
tree023a45c48913f967854ee6877d36e55a9bb46870 /build.xml
parent59e232cb5a6b5110d9f3d7efc994f6f59b966ebd (diff)
downloadxmlgraphics-fop-8ba18ee237d243a972cbff2e8f77aff1a7d3a3ba.tar.gz
xmlgraphics-fop-8ba18ee237d243a972cbff2e8f77aff1a7d3a3ba.zip
Updated for optional PDF encryption support (depending on availability of JCE)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196090 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index e544b7f5d..2160c3a10 100644
--- a/build.xml
+++ b/build.xml
@@ -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 -->