aboutsummaryrefslogtreecommitdiffstats
path: root/fop/build.xml
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2020-02-05 14:06:11 +0000
committerSimon Steiner <ssteiner@apache.org>2020-02-05 14:06:11 +0000
commitd113056a8bfb73695f21a98e2715cd04459a09bc (patch)
tree0447492e433c9d67bba3b4df7c07f2ec79e9560a /fop/build.xml
parent0cb0a5e33fa7e8ecad90ea3cd615cc62c9f6ece7 (diff)
downloadxmlgraphics-fop-d113056a8bfb73695f21a98e2715cd04459a09bc.tar.gz
xmlgraphics-fop-d113056a8bfb73695f21a98e2715cd04459a09bc.zip
FOP-2895: Ant build should use mvn jar to avoid duplicate transcoder configuration
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1873636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop/build.xml')
-rw-r--r--fop/build.xml120
1 files changed, 13 insertions, 107 deletions
diff --git a/fop/build.xml b/fop/build.xml
index ad2ad14bd..549c9ef0f 100644
--- a/fop/build.xml
+++ b/fop/build.xml
@@ -606,59 +606,6 @@ list of possible build targets.
</lib>
</war>
</target>
- <patternset id="transcoder-classes">
-<!-- General classes -->
- <patternset>
- <include name="org/apache/fop/Version.class"/>
- <include name="org/apache/fop/accessibility/StructureTreeElement.class"/>
- <include name="org/apache/fop/apps/Fop.class"/>
- <include name="org/apache/fop/apps/FOPException.class"/>
- <include name="org/apache/fop/apps/io/**"/>
- <include name="org/apache/fop/area/AreaTreeControl*"/>
- <include name="org/apache/fop/complexscripts/bidi/BidiClass.class"/>
- <include name="org/apache/fop/complexscripts/bidi/BidiConstants.class"/>
- <include name="org/apache/fop/complexscripts/bidi/UnicodeBidiAlgorithm.class"/>
- <include name="org/apache/fop/complexscripts/fonts/*.class"/>
- <include name="org/apache/fop/complexscripts/util/GlyphTester.class"/>
- <include name="org/apache/fop/events/EventProducer.class"/>
- <include name="org/apache/fop/fo/Constants.class"/>
- <include name="org/apache/fop/fo/FOTreeBuilder.class"/>
- <include name="org/apache/fop/image/loader/batik/BatikImageFlavors*.class"/>
- <include name="org/apache/fop/svg/**"/>
- <include name="org/apache/fop/fonts/**"/>
- <include name="org/apache/fop/render/gradient/**"/>
- <include name="org/apache/fop/traits/Direction.class"/>
- <include name="org/apache/fop/traits/MinOptMax.class"/>
- <include name="org/apache/fop/traits/TraitEnum.class"/>
- <include name="org/apache/fop/util/CMYKColorSpace*.class"/>
- <include name="org/apache/fop/util/Color*.class"/>
- <include name="org/apache/fop/util/ASCII*.class"/>
- <include name="org/apache/fop/util/*OutputStream.class"/>
- <include name="org/apache/fop/util/SubInputStream.class"/>
- <include name="org/apache/fop/util/Finalizable.class"/>
- <include name="org/apache/fop/util/CharUtilities*.class"/>
- <include name="org/apache/fop/util/DecimalFormatCache*.class"/>
- <include name="org/apache/fop/util/ImageObject.class"/>
- <include name="org/apache/fop/util/HexEncoder.class"/>
- <include name="org/apache/fop/configuration/**"/>
- </patternset>
-<!-- PDF transcoder -->
- <patternset>
- <include name="org/apache/fop/render/pdf/**"/>
- <exclude name="org/apache/fop/render/pdf/PDFRenderer.class"/>
- <exclude name="org/apache/fop/render/pdf/PDFXMLHandler*"/>
- <include name="org/apache/fop/render/intermediate/IFDocumentHandlerConfigurator.class"/>
- <include name="org/apache/fop/render/**Config**"/>
- <include name="org/apache/fop/util/AbstractPaintingState**"/>
- <include name="org/apache/fop/pdf/**"/>
- </patternset>
-<!-- PS transcoder -->
- <patternset>
- <include name="org/apache/fop/render/ps/**"/>
- <exclude name="org/apache/fop/render/pdf/PSRenderer.class"/>
- <exclude name="org/apache/fop/render/pdf/PSXMLHandler*"/>
- </patternset>
- </patternset>
<fileset dir="${build.classes.dir}" id="transcoder-classes-files">
<patternset refid="transcoder-classes"/>
</fileset>
@@ -667,60 +614,19 @@ list of possible build targets.
<include name="commons-logging*.jar"/>
<include name="xmlgraphics-commons*.jar"/>
</fileset>
- <target name="uptodate-transcoder-pkg" depends="compile">
- <uptodate property="transcoder.pkg.uptodate" targetfile="${build.dir}/fop-transcoder.jar">
- <srcfiles refid="transcoder-classes-files"/>
- <srcfiles refid="transcoder-lib-files"/>
- </uptodate>
- </target>
- <target name="transcoder-pkg" depends="remove-cache, uptodate-transcoder-pkg, compile" description="Generates the jar for the transcoder package for Batik" unless="transcoder.pkg.uptodate">
- <echo message="Creating the jar file ${build.dir}/fop-transcoder.jar"/>
- <property name="fop-transcoder.name" value="FOP Transcoder Package"/>
- <property name="fop-transcoder.version" value="${version}"/>
- <tstamp>
- <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
- </tstamp>
-<!-- lean transcoder jar -->
- <jar jarfile="${build.dir}/fop-transcoder.jar">
- <fileset refid="transcoder-classes-files"/>
- <manifest>
- <attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
- <attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
- <attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
- </manifest>
- <metainf dir="${basedir}/.." includes="LICENSE,NOTICE"/>
- </jar>
-<!-- all-in-one transcoder jar -->
- <property name="transcoder-deps" value="${build.dir}/transcoder-dependencies"/>
- <mkdir dir="${transcoder-deps}"/>
- <unjar dest="${transcoder-deps}">
- <patternset>
- <include name="org/apache/commons/logging/**"/>
- <include name="org/apache/commons/io/*.class"/>
- <include name="org/apache/commons/io/filefilter/*.class"/>
- <include name="org/apache/commons/io/output/*.class"/>
- </patternset>
- <fileset refid="transcoder-lib-files"/>
- </unjar>
- <mkdir dir="${transcoder-deps}/legal"/>
- <copy todir="${transcoder-deps}/legal">
- <fileset dir="${lib.dir}">
- <include name="commons-io.LICENSE.txt"/>
- <include name="commons-logging.LICENSE.txt"/>
- </fileset>
- </copy>
- <jar jarfile="${build.dir}/fop-transcoder-allinone.jar">
- <fileset refid="transcoder-classes-files"/>
- <fileset dir="${transcoder-deps}"/>
- <manifest>
- <attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
- <attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
- <attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)"/>
- <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
- </manifest>
- <metainf dir="${basedir}/.." includes="LICENSE,NOTICE"/>
- </jar>
+ <target name="transcoder-pkg" depends="remove-cache" description="Generates the jar for the transcoder package for Batik">
+ <exec executable="mvn" dir="${basedir}/../fop-transcoder">
+ <arg value="clean"/>
+ <arg value="install"/>
+ <arg value="-DskipTests"/>
+ </exec>
+ <exec executable="mvn" dir="${basedir}/../fop-transcoder-allinone">
+ <arg value="clean"/>
+ <arg value="install"/>
+ <arg value="-DskipTests"/>
+ </exec>
+ <copy file="${basedir}/../fop-transcoder/target/fop-transcoder-${version}.jar" tofile="${build.dir}/fop-transcoder.jar"/>
+ <copy file="${basedir}/../fop-transcoder-allinone/target/fop-transcoder-allinone-${version}.jar" tofile="${build.dir}/fop-transcoder-allinone.jar"/>
</target>
<target name="all" depends="package, servlet, transcoder-pkg, junit"/>
<!-- "all" target for us Makefile converts ;-) -->