Page 1 of 1

Pass in/out path to jar file with switchscripter?

Posted: Thu Aug 27, 2020 7:52 pm
by automation
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?

Re: Pass in/out path to jar file with switchscripter?

Posted: Fri Aug 28, 2020 8:37 am
by freddyp

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?

Posted: Fri Aug 28, 2020 8:37 am
by freddyp

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);