Skip to content

Tasks implementing JavaForkOptions are instrumented without using -Pagent #301

@wilkinsona

Description

@wilkinsona

Describe the bug

The documentation states:

By default, if -Pagent is specified, all tasks that extend JavaForkOptions are instrumented.

Contrary to this, instrumentation happens without -Pagent.

To Reproduce
Steps to reproduce the behavior:

plugins {
	id 'java'
	id 'org.graalvm.buildtools.native' version '0.9.13'
}
$ gradle test
[native-image-plugin] Instrumenting task with the native-image-agent: test

Expected behavior
Tasks extending JavaForkOptions are only instrumented when specifying -Pagent.

System Info (please complete the following information):

  • OS: N/A
  • GraalVM Version: N/A
  • Java Version: N/A
  • Plugin version: 0.9.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions