diff options
author | fotis <fotis@unknown> | 2000-06-18 22:18:37 +0000 |
---|---|---|
committer | fotis <fotis@unknown> | 2000-06-18 22:18:37 +0000 |
commit | 95889d5ce3a5b1cf029685cf732dfdb4eae59a2d (patch) | |
tree | c071ba117cae0631fcc69e304e6561efb2f8a53e /build.xml | |
parent | 08f344c994b750f1726d2a95ea998f2867878816 (diff) | |
download | xmlgraphics-fop-95889d5ce3a5b1cf029685cf732dfdb4eae59a2d.tar.gz xmlgraphics-fop-95889d5ce3a5b1cf029685cf732dfdb4eae59a2d.zip |
change: classes depending on jimi and xt are now only compiled if these libraries are present
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193405 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -153,6 +153,7 @@ Sometimes ant gives out this warnings, but the build is finished without any pro <property name="fonts.dir" value="org/apache/fop/render/pdf/fonts"/> <property name="replacestring" value="org/apache/fop"/> <property name="ignore_this" value="ignore_this.java"/> + <property name="jimi" value="JimiImage.java"/> <property name="xslt" value="org.apache.xalan.xslt.Process"/> <property name="src.properties.xsl" value="${src.codegen}/properties.xsl"/> @@ -177,6 +178,7 @@ Sometimes ant gives out this warnings, but the build is finished without any pro <taskdef name="xslt" classname="Xslt"/> <available property="xt.present" classname="com.jclark.xsl.sax.XSLProcessor"/> + <available property="jimi.present" classname="com.sun.jimi.core.Jimi"/> <filter token="${replacestring}" value="${build.src}/${replacestring}"/> </target> @@ -221,22 +223,32 @@ Sometimes ant gives out this warnings, but the build is finished without any pro </target> <!-- =================================================================== --> - <!-- Prepares the build directory --> + <!-- copies some source files if xt is present --> <!-- =================================================================== --> <target name="prepare-xt" depends="prepare" if="xt.present"> <copydir src="${src.dir}" dest="${build.src}" - includes="**/XT*"/> + includes="**/XT*,**/PDFOutputHandler.java"/> + </target> + + <!-- =================================================================== --> + <!-- copies special image class only if Jimi library is present --> + <!-- =================================================================== --> + <target name="prepare-jimi" depends="prepare" if="jimi.present"> + <echo message="Jimi library is present. Fop installs jimi support."/> + <copydir src="${src.dir}" + dest="${build.src}" + includes="**/${jimi}"/> </target> <!-- =================================================================== --> <!-- Prepares the source code --> <!-- =================================================================== --> - <target name="prepare-src" depends="prepare, prepare-xt"> + <target name="prepare-src" depends="prepare, prepare-xt, prepare-jimi"> <!-- copy src files --> <copydir src="${src.dir}" dest="${build.src}" - excludes="**/Makefile*, **/package.html, **/XT*"/> + excludes="**/Makefile*, **/package.html, **/XT*,**/PDFOutputHandler.java,**/${jimi}"/> </target> <!-- =================================================================== --> @@ -295,7 +307,7 @@ Sometimes ant gives out this warnings, but the build is finished without any pro debug="${debug}" deprecation="${deprecation}" optimize="${optimize}" - excludes="**/${ignore_this}"/> + excludes="**/${ignore_this},${jimi}"/> </target> <!-- =================================================================== --> @@ -313,6 +325,8 @@ Sometimes ant gives out this warnings, but the build is finished without any pro <!-- =================================================================== --> <target name="prepare-docs" depends="init"> <mkdir dir="${build.docs}"/> + <!-- sets exec permission for antRun on Unix systems. necessary for javadoc--> + <chmod src="${lib.dir}/bin/antRun" perm="ugo+rx" /> </target> <!-- =================================================================== --> |