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();
|
.build();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
System.setProperty("es.path.home", "/tmp");
|
||||||
Path tmp = Files.createTempDirectory("tika");
|
|
||||||
System.setProperty("es.path.home", tmp.getFileName().toString());
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static class TikaRunner extends Command {
|
static class TikaRunner extends Command {
|
||||||
|
|
Loading…
Reference in New Issue