File: disable-debugger.patch

package info (click to toggle)
libpdfbox2-java 2.0.13-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,420 kB
  • sloc: java: 146,854; xml: 3,026; makefile: 7
file content (58 lines) | stat: -rw-r--r-- 1,898 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Description: Disable the debugger support in the tools component
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
+++ b/tools/src/main/java/org/apache/pdfbox/tools/PDFBox.java
@@ -16,8 +16,6 @@
  */
 package org.apache.pdfbox.tools;
 
-import org.apache.pdfbox.debugger.PDFDebugger;
-
 /**
  * Simple wrapper around all the command line utilities included in PDFBox.
  * Used as the main class in the runnable standalone PDFBox jar.
@@ -71,11 +69,6 @@
             {
                 PrintPDF.main(arguments);
             }
-            else if (command.equals("PDFDebugger") || command.equals("PDFReader"))
-            {
-                PDFDebugger.main(arguments);
-                exitAfterCallingMain = false;
-            }
             else if (command.equals("PDFMerger"))
             {
                 PDFMerger.main(arguments);
@@ -122,7 +115,6 @@
                 + "  ExtractImages\n"
                 + "  OverlayPDF\n"
                 + "  PrintPDF\n"
-                + "  PDFDebugger\n"
                 + "  PDFMerger\n"
                 + "  PDFReader\n"
                 + "  PDFSplit\n"
--- a/tools/pom.xml
+++ b/tools/pom.xml
@@ -39,16 +39,16 @@
 
   <dependencies>
     <dependency>
+        <groupId>${project.groupId}</groupId>
+        <artifactId>pdfbox</artifactId>
+        <version>${project.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.bouncycastle</groupId>
       <artifactId>bcmail-jdk15on</artifactId>
       <optional>true</optional>
     </dependency>
     <dependency>
-        <groupId>${project.groupId}</groupId>
-        <artifactId>pdfbox-debugger</artifactId>
-        <version>${project.version}</version>
-    </dependency>
-    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <scope>test</scope>