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 2022/03/04 19:46:31 UTC
[tika] branch main updated: allow -noFork and --noFork
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 3639c98 allow -noFork and --noFork
3639c98 is described below
commit 3639c9888aee0280815d1c0468b3cfd1ff5a3f2f
Author: tallison <ta...@apache.org>
AuthorDate: Fri Mar 4 14:39:06 2022 -0500
allow -noFork and --noFork
---
.../src/main/java/org/apache/tika/server/core/TikaServerCli.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TikaServerCli.java b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TikaServerCli.java
index 7e4d5cc..7346b59 100644
--- a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TikaServerCli.java
+++ b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TikaServerCli.java
@@ -55,7 +55,7 @@ public class TikaServerCli {
options.addOption("i", "id", true,
"id to use for server in" + " the server status endpoint and logging");
- options.addOption("noFork", false, "runs in legacy 1.x mode -- " +
+ options.addOption("noFork", "noFork", false, "runs in legacy 1.x mode -- " +
"server runs in process and is not safely isolated in a forked process");
return options;
@@ -141,7 +141,7 @@ public class TikaServerCli {
public static void noFork(TikaServerConfig tikaServerConfig) throws Exception {
List<String> args = tikaServerConfig
.getForkedProcessArgs(tikaServerConfig.getPort(), tikaServerConfig.getIdBase());
- args.add("-noFork");
+ args.add("--noFork");
TikaServerProcess.main(args.toArray(new String[0]));
}