Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Include option to link java.instrument module
  • Loading branch information
jfallows committed Dec 12, 2023
commit f8bed7441988b78dfc0c2cd2397ede1444bfe786
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public final class ZpmInstall extends ZpmCommand
description = "Link jdk.jdwp.agent module")
public Boolean debug = false;

@Option(name = { "--instrument" },
description = "Link java.instrument module",
hidden = true)
public Boolean instrument = false;

@Option(name = { "--exclude-local-repository" },
description = "Exclude the local Maven repository")
public boolean excludeLocalRepo;
Expand Down Expand Up @@ -661,6 +666,10 @@ private void linkModules(
{
extraModuleNames.add("jdk.jdwp.agent");
}
if (instrument)
{
extraModuleNames.add("java.instrument");
}

Stream<String> moduleNames = Stream.concat(modules.stream().map(m -> m.name), extraModuleNames.stream());

Expand Down