Scala

Follow

SBT/Scala Commands

To add OverOps Agents to your Scala application with SBT:
  • Pass a JVM argument to scala/sbt with a "-J" prefix:
    scala -J-agentlib:TakipiAgentsbt -J-agentlib:TakipiAgent
 Or
  • Set JAVA_OPTS environment variable before starting Scala:
    Linux/macOS:
    export JAVA_OPTS="$JAVA_OPTS -agentlib:TakipiAgent"
    Windows:
    set JAVA_OPTS=%JAVA_OPTS% -agentlib:TakipiAgent
    Note: In some SBT versions the environment variable is SBT_OPTS and not JAVA_OPTS.
 

Maven

To add OverOps Agents to your Scala application with Maven:

  • In the terminal/command line, add -agentlib:TakipiAgent to the MAVEN_OPTS environment variable:

    Linux/macOS:

    export MAVEN_OPTS="$MAVEN_OPTS -agentlib:TakipiAgent"

    Windows:

    set MAVEN_OPTS=%MAVEN_OPTS% -agentlib:TakipiAgent

 

Related Articles

 

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.