sbt-javaagent icon indicating copy to clipboard operation
sbt-javaagent copied to clipboard

Putting agent JARs in lib directory

Open steinybot opened this issue 3 years ago • 2 comments

Any particular reason that the agent JARs are not in the lib directory along with all the other dependencies?

Instead of:

addJava "-javaagent:${app_home}/../kanela-agent/kanela-agent-1.0.9.jar" 

it could be:

addJava "-javaagent:${lib_dir}/kanela-agent-1.0.9.jar" 

steinybot avatar Apr 07 '21 23:04 steinybot

I think it was probably so that lib/* can be added to the classpath without including the agent.

pvlugter avatar Apr 08 '21 00:04 pvlugter

Good point although it seems in at least version 1.7.5 of sbt-native-packager that it adds all the classpath entries explicitly.

steinybot avatar Apr 08 '21 01:04 steinybot