Passing cmdline parameter from Simulation to Scenario

I am passing in parameters via the command line to a Simulation.

e.g. JAVA+OPTS=’-Dtarget=https://hostname -Dinput=file.csv’

which I read into the Simulation into vals.

I can easily use the values in Simulation which defines the Scenario inside the Simulation class.

However, if the Scenario an object defined in different file, how do I pass the value to the scenario?

Issue:

With 2.0.0M3a, changing the gatling.core.directory.data value to something does not work.
I have to copy the files into gatling’s user-files/data/ directory for the data file to be used.

I also tried the ‘-df’ or ‘–data-folder’ option on the command line. That didn’t work either.

FWIW, I am using Mac OS-X Mavericks.

Thanks
Sajjad

However, if the Scenario an object defined in different file, how do I
pass the value to the scenario?

What's your problem exactly?
Either resolve the System props in the object, or have the object define
defs instead of val so you can't pass parameters.

Issue:

With 2.0.0M3a, changing the gatling.core.directory.data value to something
does not work.
I have to copy the files into gatling's user-files/data/ directory for the
data file to be used.

I also tried the '-df' or '--data-folder' option on the command line. That
didn't work either.

Can you reproduce with snapshot?