Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way I can pass variables to scriptella e.g. environment or -D parameter?

Tags:

scriptella

I need to invoke same xmls with slight variation in certain parameters. I thought of writing etl.properties, but then I realize I have to write the properties file name in the xml and that is not what I want.

Ideally I was looking for to pass parameters to Scriptella using command line. Apparently I could not find it in any document.

Any ideas?

like image 892
Manish Sapariya Avatar asked Oct 03 '22 18:10

Manish Sapariya


1 Answers

You can directly use a Java launcher to pass system properties:

java -jar -Dproperty=value scriptella.jar [etl_file_name]

Or an alternative launching option if multiple jars needed on the classpath. (This is rarely necessary because jars can be added in the connection declaration):

java -Dproperty=value -cp scriptella.jar:additiona_jars.jar scriptella.tools.launcher.EtlLauncher [etl_file_name]
like image 83
ejboy Avatar answered Oct 07 '22 17:10

ejboy