Skip to content

Commit

Permalink
Upgrade from Tika 1.12 to 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
NinoSkopac committed Apr 19, 2017
1 parent eb4a5e8 commit 5c1389c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ composer.phar
composer.lock
vendor

!vendor/tika-app-1.12.jar
!vendor/tika-app-1.14.jar
4 changes: 2 additions & 2 deletions src/TikaWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class TikaWrapper {
* @param string $option
* @param string $fileName
* @return string
* @throws RuntimeException
* @throws \RuntimeException
*/
protected static function run($option, $fileName){
$file = new SplFileInfo($fileName);
$tikaPath = __DIR__ . "/../vendor/";
$shellCommand = 'java -jar tika-app-1.12.jar ' . $option . ' "' . $file->getRealPath() . '"';
$shellCommand = 'java -jar tika-app-1.14.jar ' . $option . ' "' . $file->getRealPath() . '"';

$process = new Process($shellCommand);
$process->setWorkingDirectory($tikaPath);
Expand Down
Binary file not shown.

0 comments on commit 5c1389c

Please sign in to comment.