question

Upvotes
Accepted
210 4 6 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-sdkema-apirrtelektron-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

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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