You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ju...@apache.org on 2010/08/10 15:00:22 UTC

svn commit: r983974 - /pdfbox/trunk/pdfbox/build.xml

Author: jukka
Date: Tue Aug 10 13:00:22 2010
New Revision: 983974

URL: http://svn.apache.org/viewvc?rev=983974&view=rev
Log:
PDFBOX-494: Addtional CMap files from adobe

Use the new pcfi jar version that contains all the resources we previously downloaded from Jira

Modified:
    pdfbox/trunk/pdfbox/build.xml

Modified: pdfbox/trunk/pdfbox/build.xml
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/build.xml?rev=983974&r1=983973&r2=983974&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/build.xml (original)
+++ pdfbox/trunk/pdfbox/build.xml Tue Aug 10 13:00:22 2010
@@ -105,14 +105,8 @@
     <property name="testfiles.encryption.url" value="${jiraattachment.url}/12413268/input-ext_encryption.jar"/>
     <property name="testfiles.encryption.jar" value="${download.dir}/input-ext_encryption.jar"/>
 
-    <property name="adobefiles.url" value="${maven.repo2}/com/adobe/pdf/pcfi/2009.06.14/pcfi-2009.06.14.jar"/>
-    <property name="adobefiles.jar" value="${download.dir}/pcfi-2009.06.14.jar"/>
-    <property name="adobefiles.additional.url" value="${jiraattachment.url}/12413828/additional_cmaps.jar"/>
-    <property name="adobefiles.additional.jar" value="${download.dir}/additional_cmaps.jar"/>
-    <property name="adobefiles.removed.url" value="${jiraattachment.url}/12413648/removed_cmaps.jar"/>
-    <property name="adobefiles.removed.jar" value="${download.dir}/removed_cmaps.jar"/>
-    <property name="adobefiles.glyph.url" value="${jiraattachment.url}/12413646/glyphlist.txt"/>
-    <property name="adobefiles.glyph.txt" value="${download.dir}/glyphlist.txt"/>
+    <property name="adobefiles.url" value="${maven.repo2}/com/adobe/pdf/pcfi/2010.08.09/pcfi-2010.08.09.jar"/>
+    <property name="adobefiles.jar" value="${download.dir}/pcfi-2010.08.09.jar"/>
 
 	<property name="file" value=""/>
 	
@@ -232,48 +226,26 @@
             <param name="sourcefile" value="${adobefiles.url}"/>
             <param name="destfile" value="${adobefiles.jar}"/>
         </antcall>
-        <antcall target="downloadfile">
-            <param name="sourcefile" value="${adobefiles.additional.url}"/>
-            <param name="destfile" value="${adobefiles.additional.jar}"/>
-        </antcall>
-        <antcall target="downloadfile">
-            <param name="sourcefile" value="${adobefiles.removed.url}"/>
-            <param name="destfile" value="${adobefiles.removed.jar}"/>
-        </antcall>
-        <antcall target="downloadfile">
-            <param name="sourcefile" value="${adobefiles.glyph.url}"/>
-            <param name="destfile" value="${adobefiles.glyph.txt}"/>
-        </antcall>
-        <copy todir="${pdfbox.dest.dir}/org/apache/pdfbox/resources/" file="${adobefiles.glyph.txt}" overwrite="true"/> 
         <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/cmap">
             <patternset>
                 <include name="com/adobe/pdf/pcfi/chinese_t/*"/>
                 <include name="com/adobe/pdf/pcfi/japanese/*"/>
                 <include name="com/adobe/pdf/pcfi/korean/*"/>
+                <include name="com/adobe/pdf/pcfi/vietnamese/*"/>
                 <exclude name="**/*.pdf"/>
+                <exclude name="**/*.txt"/>
             </patternset>
             <mapper type="flatten"/>
         </unjar>
-        <unjar src="${adobefiles.additional.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/cmap">
+        <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/afm">
             <patternset>
-                <include name="ac15/CMap/*"/>
-                <include name="ag15/CMap/*"/>
-                <include name="ai0/CMap/*"/>
-                <include name="aj16/CMap/*"/>
-                <include name="aj20/CMap/*"/>
-                <include name="ak12/CMap/*"/>
-                <include name="rksj-cmaps/*"/>
-                <include name="tounicode/*"/>
-                <exclude name="**/*.txt"/>
+                <include name="com/adobe/pdf/pcfi/afm/*.afm"/>
             </patternset>
             <mapper type="flatten"/>
         </unjar>
-        <unjar src="${adobefiles.removed.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/cmap">
-            <mapper type="flatten"/>
-        </unjar>
-        <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/afm">
+        <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources">
             <patternset>
-                <include name="com/adobe/pdf/pcfi/afm/*"/>
+                <include name="com/adobe/pdf/pcfi/glyphlist.txt"/>
             </patternset>
             <mapper type="flatten"/>
         </unjar>