Does example310__MarketByOrder__Streaming read EmaConfig.xml when launching through gradlew on Linux? If so, where does it look for EmaConfig.xml?
Does example310__MarketByOrder__Streaming read EmaConfig.xml when launching through gradlew on Linux? If so, where does it look for EmaConfig.xml?
To run the example, EmaConfig.xml must be copied to the working directory of the example. You can verify the working directory by using the -i option.
$ ./gradlew -i runconsumer310 ... Starting process 'command '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/bin/java''. Working directory: /opt/refinitiv/Elektron-SDK/Java/Ema/Examples ...
You can also specify the working directory (workingDir) in the Java\Ema\Examples\build.gradle file, as shown below.
task "${TaskName}" ( type: JavaExec ) { group 'Run EMA ' + ExampleType + ' Application Examples' description 'This task runs the ' + TaskDescription workingDir '/opt/refinitiv' tasks.copyDictionary.execute() main = exampleMainLocation classpath = sourceSets.main.runtimeClasspath }