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 » Thu Aug 27, 2020 7:52 pm

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: 609
Joined: Thu Feb 09, 2012 3:53 pm

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

Post by freddyp » Fri Aug 28, 2020 8:37 am

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: 609
Joined: Thu Feb 09, 2012 3:53 pm

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

Post by freddyp » Fri Aug 28, 2020 8:37 am

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