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:
parent
88ca607058
commit
4aff3b317a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue