This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/master by this push:
     new f31b7f1  TIKA-2433 All non-pipe modes need configuring, otherwise the 
Tika Server fails
f31b7f1 is described below

commit f31b7f1e281938c393f159cd4a76f3396291e7b6
Author: Nick Burch <[email protected]>
AuthorDate: Tue Jul 25 15:20:54 2017 +0100

    TIKA-2433 All non-pipe modes need configuring, otherwise the Tika Server 
fails
---
 tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java 
b/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
index eaa0626..402e62f 100644
--- a/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
+++ b/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
@@ -456,6 +456,8 @@ public class TikaCLI {
             networkURI = new URI(arg.substring("-c".length()));
         } else {
             pipeMode = false;
+            configure();
+            
             if (serverMode) {
                 new TikaServer(Integer.parseInt(arg)).start();
             } else if (arg.equals("-")) {
@@ -464,7 +466,6 @@ public class TikaCLI {
                     type.process(stream, System.out, new Metadata());
                 }
             } else {
-                configure();
                 URL url;
                 File file = new File(arg);
                 if (file.isFile()) {

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to