This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_3x by this push:
new 558dc9d24 TIKA-4472 -- extract macros by default in tika-app when
parsing a single file and in the gui! (#2310)
558dc9d24 is described below
commit 558dc9d2419f095bf898e2b5f3bd926531767f0a
Author: Tim Allison <[email protected]>
AuthorDate: Thu Aug 21 11:53:56 2025 -0400
TIKA-4472 -- extract macros by default in tika-app when parsing a single
file and in the gui! (#2310)
(cherry picked from commit 7bbc41dad8affbe0ca4be99cb70dd23a91c28f19)
---
tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java
b/tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java
index e80e6f2d1..1da9cda9c 100644
--- a/tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java
+++ b/tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java
@@ -194,10 +194,14 @@ public class TikaGUI extends JFrame implements
ActionListener, HyperlinkListener
* @throws Exception if an error occurs
*/
public static void main(String[] args) throws Exception {
- TikaConfig config = TikaConfig.getDefaultConfig();
+ TikaConfig config = null;
if (args.length > 0) {
File configFile = new File(args[0]);
config = new TikaConfig(configFile);
+ } else {
+ try (InputStream is =
TikaGUI.class.getResourceAsStream("/tika-config-default-single-file.xml")) {
+ config = new TikaConfig(is);
+ }
}
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
final TikaConfig finalConfig = config;