5

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?

Manish Sapariya
  • 3,575
  • 3
  • 25
  • 34
  • Good point, I think it was already requested once. I've added a [ticket](http://javaforge.com/issue/186151) to add support for passing properties in the shell script. – ejboy Jun 20 '13 at 09:51

1 Answers1

4

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]
ejboy
  • 4,081
  • 5
  • 30
  • 32