question

Upvotes
Accepted
210 4 5 8

Java EmaConfig.xml file for example310__MarketByOrder__Streaming when launching through gradlew

Does example310__MarketByOrder__Streaming read EmaConfig.xml when launching through gradlew on Linux? If so, where does it look for EmaConfig.xml?

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apijavalinuxbuildnon-interactive
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
47.4k 111 44 60

@ron.bove.1

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
               }
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.