RFR: 6946: There should be an option to build the agent in the build script [v8]
Miroslav Wengner
mwengner at openjdk.java.net
Mon Jan 11 16:32:10 UTC 2021
On Fri, 8 Jan 2021 16:20:55 GMT, Marcus Hirt <hirt at openjdk.org> wrote:
>> I've add an option --runAgentCustomExample '<class>' => --runAgentCustomExample 'org.openjdk.jmc.agent.test.InstrumentMe' , what do you think ? @thegreystone
>
> For me, the buildscript is all about making it easier to do common things. The --runAgentConvertExample option makes it easy to run one of the two examples one might want to run to test things from JMC. If I need to do something custom, I might as well just put the built agent jar on the command line and do whatever I want to do. Since the classpath won't be set to anything else, there won't be that many main classes to pick from other than the standard example and the converter example.
>
> I would suggest just having --runAgentExample and --runAgentConverterExample.
agree, updated 2 options: --runAgentExample and --runAgentConverterExample.
-------------
PR: https://git.openjdk.java.net/jmc/pull/183
More information about the jmc-dev
mailing list