I have a Java JAR file i execute with switchscripter.
The JAR file need two parameters, in, the folder before, and out next folder. File in to the jar file is not the same as out from JAR, it's a modified copy. I need to pass the copy to the next folder and trow away the original input file.
How should you setup that, access the in and out folder?
Pass in/out path to jar file with switchscripter?
-
- Member
- Posts: 40
- Joined: Tue Jan 15, 2019 10:19 pm
Re: Pass in/out path to jar file with switchscripter?
Code: Select all
var input=job.getPath();
var output=job.createPathWithName(someNameForTheOutput);
//now follows the Java execution
//and when it is done successfully
job.sendToSingle(output); //or sendToData
job.sendToNull(input);
Re: Pass in/out path to jar file with switchscripter?
Code: Select all
var input=job.getPath();
var output=job.createPathWithName(someNameForTheOutput);
//now follows the Java execution
//and when it is done successfully
job.sendToSingle(output); //or sendToData
job.sendToNull(input);