Build targets
=============
-The build system is not only responsible of compiling Fop into a jar file,
+The build system is not only responsible for compiling Fop into a jar file,
but is also responsible for creating the HTML documentation, javadocs,
distributions and web site. In fact, the file you have here is _exactly_ what
is used by fop maintainers to take care of everything in the Fop
</path>
<patternset id="exclude-jimi">
- <exclude name="org/apache/fop/image/JimiImage.java"/>
+ <exclude name="org/apache/fop/image/JimiImage.java" unless="jimi.present"/>
</patternset>
<patternset id="exclude-jai">
- <exclude name="org/apache/fop/image/JAIImage.java"/>
+ <exclude name="org/apache/fop/image/JAIImage.java" unless="jai.present"/>
</patternset>
<patternset id="exclude-jce-dependencies">
- <exclude name="org/apache/fop/pdf/PDFEncryptionJCE.java"/>
+ <exclude name="org/apache/fop/pdf/PDFEncryptionJCE.java" unless="jce.present"/>
</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>
<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="jimi.present" classname="com.sun.jimi.core.Jimi"
+ classpathref="libs-build-classpath"/>
+ <condition property="jimi.message" value="Jimi Support PRESENT">
+ <equals arg1="${jimi.present}" arg2="true"/>
+ </condition>
+ <condition property="jimi.message" value="Jimi Support NOT Present">
+ <not>
+ <equals arg1="${jimi.present}" arg2="true"/>
+ </not>
+ </condition>
+ <echo message="${jimi.message}"/>
+ <available property="jai.present" classname="javax.media.jai.JAI"
+ classpathref="libs-build-classpath"/>
+ <condition property="jai.message" value="JAI Support PRESENT">
+ <equals arg1="${jai.present}" arg2="true"/>
+ </condition>
+ <condition property="jai.message" value="JAI Support NOT Present">
+ <not>
+ <equals arg1="${jai.present}" arg2="true"/>
+ </not>
+ </condition>
+ <echo message="${jai.message}"/>
+ <available property="jce.present" classname="javax.crypto.Cipher"
+ classpathref="libs-build-classpath"/>
+ <condition property="jce.message" value="JCE Support PRESENT">
+ <equals arg1="${jce.present}" arg2="true"/>
+ </condition>
+ <condition property="jce.message" value="JCE Support NOT Present">
+ <not>
+ <equals arg1="${jce.present}" arg2="true"/>
+ </not>
+ </condition>
+ <echo message="${jce.message}"/>
<available property="jdk14.present" classname="java.lang.CharSequence"/>
</target>
<javac destdir="${build.dest}" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
<src path="${build.gensrc}"/>
<src path="${src.java}"/>
+ <patternset refid="exclude-jce-dependencies"/>
+ <patternset refid="exclude-jai"/>
+ <patternset refid="exclude-jimi"/>
<classpath refid="libs-build-classpath"/>
<patternset refid="base-sources"/>
</javac>
</target>
- <target name="compile-jimi" depends="compile-src" if="jimi.present">
- <echo message="Jimi library is present. Fop installs jimi support."/>
- <javac destdir="${build.dest}" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
- <src path="${src.java}"/>
- <classpath refid="libs-build-classpath"/>
- <include name="**/${jimi}"/>
- </javac>
- </target>
-
- <target name="compile-jai" depends="compile-src" if="jai.present">
- <echo message="JAI library is present. Fop installs JAI support."/>
- <javac destdir="${build.dest}" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
- <src path="${src.java}"/>
- <classpath refid="libs-build-classpath"/>
- <include name="**/${jai}"/>
- </javac>
- </target>
-
- <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"/>
+ <target name="compile" depends="compile-src" description="Compiles the source code"/>
<!-- =================================================================== -->
<!-- compiles hyphenation patterns -->
</lib>
</war>
</target>
-
+
<target name="pdf-transcoder" depends="compile" description="Generates the jar for the pdf transcoder for Batik">
<echo message="Creating the jar file ${build.dir}/pdf-transcoder.jar"/>