My jar file creates several database-files within one execution run. The number of outputs depends on my input argument -iteration. Is it possible to return a List[File] instead of of a single variable o = val ?
Basic idea would be to build something like this. My run function returns a
Arraylist of type File.
val arg1 = Val[Int]
val arg2 = Val[Int]
val outputfile_list = List[File]
//Definition of workflow
val javaTask = ScalaTask(""“
outputfile_list = package.start.Main.run(arg1,arg2) “””) set (
libraries += workDirectory / “application.jar”,
inputs += (arg1,arg2),
outputs += (loutputfile),
arg1 := 1,
arg2 := 2
Is it possible to achieve something like this?
Or what is the best-practice if the number of return value is not know during compile time?