Pass in/out path to jar file with switchscripter?

Post Reply
automation
Member
Posts: 40
Joined: Tue Jan 15, 2019 10:19 pm

Pass in/out path to jar file with switchscripter?

Post 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?
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

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

Post 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);
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

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

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