Skip to content
Snippets Groups Projects
Commit 9e089401 authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

handle tmp as parameter for input and output when used locally

parent cf9dd685
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,14 @@ class CorpusThread extends Thread {
String callbackUrl; // URL to be called when the task is done, giving an empty string means skipping the callback
CorpusThread(String infile, String outfile, String functions, String token, String callbackUrl) {
if (infile.equals("tmp"))
this.inFile = System.getProperty("java.io.tmpdir") + "/corpus-files";
else
this.inFile = infile;
this.functionNames = functions ;
if (outfile.equals("tmp"))
this.outFile = this.inFile + "/report.html";
else
this.outFile = outfile;
this.token = token ;
this.callbackUrl = callbackUrl ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment