patch: 'Origin: vendor'
[debian/jabref.git] / debian / patches / 07_pdfbox1.5.patch
1 Description: adjust for new upstream release of PDFBox:
2  - fix up package imports for jempbox and pdfbox
3  - adjust return type of getSequenceDateList()
4 Origin: vendor
5 Forwarded: no
6 Author: tony mancill <tmancill@debian.org>
7 Last-Update: 2011-03-28
8
9 --- a/src/java/net/sf/jabref/util/XMPSchemaBibtex.java
10 +++ b/src/java/net/sf/jabref/util/XMPSchemaBibtex.java
11 @@ -7,8 +7,8 @@
12  
13  import net.sf.jabref.*;
14  
15 -import org.jempbox.xmp.XMPMetadata;
16 -import org.jempbox.xmp.XMPSchema;
17 +import org.apache.jempbox.xmp.XMPMetadata;
18 +import org.apache.jempbox.xmp.XMPSchema;
19  import org.w3c.dom.Element;
20  import org.w3c.dom.NamedNodeMap;
21  import org.w3c.dom.Node;
22 @@ -106,7 +106,7 @@
23         }
24  
25         @SuppressWarnings("unchecked")
26 -       public List<String> getSequenceDateList(String seqName) throws IOException {
27 +       public List<Calendar> getSequenceDateList(String seqName) throws IOException {
28                 return super.getSequenceDateList(makeProperty(seqName));
29         }
30  
31 --- a/src/java/net/sf/jabref/util/XMPUtil.java
32 +++ b/src/java/net/sf/jabref/util/XMPUtil.java
33 @@ -9,18 +9,18 @@
34  import net.sf.jabref.imports.BibtexParser;
35  import net.sf.jabref.imports.ParserResult;
36  
37 -import org.jempbox.impl.DateConverter;
38 -import org.jempbox.impl.XMLUtil;
39 -import org.jempbox.xmp.XMPMetadata;
40 -import org.jempbox.xmp.XMPSchema;
41 -import org.jempbox.xmp.XMPSchemaDublinCore;
42 -import org.pdfbox.cos.COSDictionary;
43 -import org.pdfbox.cos.COSName;
44 -import org.pdfbox.exceptions.COSVisitorException;
45 -import org.pdfbox.pdmodel.PDDocument;
46 -import org.pdfbox.pdmodel.PDDocumentCatalog;
47 -import org.pdfbox.pdmodel.PDDocumentInformation;
48 -import org.pdfbox.pdmodel.common.PDMetadata;
49 +import org.apache.jempbox.impl.DateConverter;
50 +import org.apache.jempbox.impl.XMLUtil;
51 +import org.apache.jempbox.xmp.XMPMetadata;
52 +import org.apache.jempbox.xmp.XMPSchema;
53 +import org.apache.jempbox.xmp.XMPSchemaDublinCore;
54 +import org.apache.pdfbox.cos.COSDictionary;
55 +import org.apache.pdfbox.cos.COSName;
56 +import org.apache.pdfbox.exceptions.COSVisitorException;
57 +import org.apache.pdfbox.pdmodel.PDDocument;
58 +import org.apache.pdfbox.pdmodel.PDDocumentCatalog;
59 +import org.apache.pdfbox.pdmodel.PDDocumentInformation;
60 +import org.apache.pdfbox.pdmodel.common.PDMetadata;
61  
62  /**
63   * XMPUtils provide support for reading and writing BibTex data as XMP-Metadata