Skip to content

Commit

Permalink
Add missing JDK debug level parameters to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
galderz committed Oct 1, 2021
1 parent 1daa032 commit 4598c0c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion examples/graal.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public class graal implements Callable<Integer>
)
private Repository jdk = Repositories.LABS_JDK;

@Option(
description = "Debug level"
, names = {"-d", "--jdk-debug-level"}
)
private Jdk.DebugLevel jdkDebugLevel = Jdk.DebugLevel.FASTDEBUG;

@Option(
description = "Graal repository URI"
, names = {"-g", "--graal"}
Expand All @@ -45,7 +51,7 @@ public Integer call() throws Exception
qollider
.plan(
qollider.jdk().build(
new Jdk.Build(jdk)
new Jdk.Build(jdk, jdkDebugLevel)
)
, qollider.graal().build(
new Graal.Build(graal, Repositories.MX)
Expand Down
8 changes: 7 additions & 1 deletion examples/mandrel.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public class mandrel implements Callable<Integer>
)
private Repository jdk = Repositories.JDK_11_DEV;

@Option(
description = "Debug level"
, names = {"-d", "--jdk-debug-level"}
)
private Jdk.DebugLevel jdkDebugLevel = Jdk.DebugLevel.FASTDEBUG;

@Option(
description = "Mandrel repository URI"
, names = {"-m", "--mandrel"}
Expand All @@ -45,7 +51,7 @@ public Integer call() throws Exception
qollider
.plan(
qollider.jdk().build(
new Jdk.Build(jdk)
new Jdk.Build(jdk, jdkDebugLevel)
)
, qollider.mandrel().build(
new Mandrel.Build(
Expand Down
8 changes: 7 additions & 1 deletion examples/quarkus.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public class quarkus implements Callable<Integer>
)
private Repository jdk = Repositories.JDK_11_DEV;

@Option(
description = "Debug level"
, names = {"-d", "--jdk-debug-level"}
)
private Jdk.DebugLevel jdkDebugLevel = Jdk.DebugLevel.FASTDEBUG;

@Option(
description = "Graal repository URI"
, names = {"-g", "--graal"}
Expand All @@ -48,7 +54,7 @@ public Integer call() throws Exception
qollider
.plan(
qollider.jdk().build(
new Jdk.Build(jdk)
new Jdk.Build(jdk, jdkDebugLevel)
)
, qollider.mandrel().build(
new Mandrel.Build(graal, Repositories.MX, Repositories.MANDREL_PACKAGING)
Expand Down

0 comments on commit 4598c0c

Please sign in to comment.