Permalink
Browse files

Minor tweak to allow launching from the command line for testing.

  • Loading branch information...
1 parent 4cb0713 commit 257afb7734d1b2e87bef1dbcc8690109f8673a67 @qris qris committed Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 TikaServiceWinRun4J.java
@@ -114,8 +114,8 @@ public int serviceRequest(int control) throws ServiceException {
public static void main(String [] args)
{
- System.err.println("This class can only be run as a Windows " +
+ System.err.println("This class should only be run as a Windows " +
"service with WinRun4J");
- System.exit(2);
+ System.exit(new TikaServiceWinRun4J().serviceMain(args));
}
}

0 comments on commit 257afb7

Please sign in to comment.