Repository: tika
Updated Branches:
  refs/heads/master 6e4206215 -> bb46c0e0c


TIKA-1979 -- add message on stdout when tika-app's server.  Add deprecation 
message on stderr for tika-app's server


Project: http://git-wip-us.apache.org/repos/asf/tika/repo
Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/bb46c0e0
Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/bb46c0e0
Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/bb46c0e0

Branch: refs/heads/master
Commit: bb46c0e0c2f572e58b847ef59d7e8809326c3da4
Parents: 6e42062
Author: tballison <[email protected]>
Authored: Mon May 23 08:47:43 2016 -0400
Committer: tballison <[email protected]>
Committed: Mon May 23 08:47:43 2016 -0400

----------------------------------------------------------------------
 tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tika/blob/bb46c0e0/tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
----------------------------------------------------------------------
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 ef8045e..17a2bb3 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
@@ -1093,14 +1093,21 @@ public class TikaCLI {
     private class TikaServer extends Thread {
 
         private final ServerSocket server;
-
+        private final int port;
         public TikaServer(int port) throws IOException {
             super("Tika server at port " + port);
             server = new ServerSocket(port);
+            this.port = port;
         }
 
         @Override
         public void run() {
+            System.out.println("Successfully started tika-app's server on 
port: "+port);
+            System.err.println("WARNING: The server option in tika-app is 
deprecated and will be removed ");
+            System.err.println("by Tika 2.0 if not shortly after Tika 1.14.");
+            System.err.println("Please migrate to the JAX-RS tika-server 
package.");
+            System.err.println("See https://wiki.apache.org/tika/TikaJAXRS for 
usage.");
+
             try {
                 try {
                     while (true) {

Reply via email to