Standalone runner expects path.home to be set

Don't use forbidden API. Actually we don't need to create any `tmp` dir.

Related to #167.
This commit is contained in:
David Pilato 2015-10-23 16:55:35 +02:00
parent 88ca607058
commit 4aff3b317a
1 changed files with 1 additions and 6 deletions

View File

@ -67,12 +67,7 @@ public class StandaloneRunner extends CliTool {
.build();
static {
try {
Path tmp = Files.createTempDirectory("tika");
System.setProperty("es.path.home", tmp.getFileName().toString());
} catch (IOException e) {
e.printStackTrace();
}
System.setProperty("es.path.home", "/tmp");
}
static class TikaRunner extends Command {