Sunday, April 3, 2011

Batch processing in Scala

I have a number of runnable programs written in Java that I'd like to set into one class that would run those one after another in Scala. So for example I have classes: RunMe with arguments "A", "B", "C" WorkbookLoader with arguments "c:\workbooks\", "c:\sourceFile.bin" and "c:\targetFile.bin"

i just need those to call one after another.

Greatly appreciate for giving me an answer in advance.

Sincerely,

Roman

From stackoverflow
  • You have to use Java's Runtime#exec method, just like in Java. See the javadoc here.

0 comments:

Post a Comment