You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2025/08/21 15:28:43 UTC
(tika) branch TIKA-4472-add-gui created (now 26de5f308)
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a change to branch TIKA-4472-add-gui
in repository https://gitbox.apache.org/repos/asf/tika.git
at 26de5f308 TIKA-4472 -- extract macros by default in tika-app when parsing a single file and in the gui!
This branch includes the following new commits:
new 26de5f308 TIKA-4472 -- extract macros by default in tika-app when parsing a single file and in the gui!
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(tika) 01/01: TIKA-4472 -- extract macros by default in tika-app when parsing a single file and in the gui!
Posted by ta...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch TIKA-4472-add-gui
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 26de5f3086035d20b802b6607cc706b2b0fff54f
Author: tallison <ta...@apache.org>
AuthorDate: Thu Aug 21 11:28:33 2025 -0400
TIKA-4472 -- extract macros by default in tika-app when parsing a single file and in the gui!
---
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;