Skip to content

Commit

Permalink
Add Mendel experiment to enable Jetty12 for java17
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 673573613
Change-Id: Ic588c8dffab7244b4c732b9694a3f4764f87fbbc
  • Loading branch information
ludoch authored and gae-java-bot committed Sep 11, 2024
1 parent c8a0acb commit 6f337b0
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,15 @@ public void handleRuntimeProperties() {
System.clearProperty("appengine.use.EE8");
System.setProperty("appengine.use.EE10", "true");
break;
case "java17":
// See if the Mendel experiment to enable Jetty12 for java17 is set
// automatically via env var:
if (Objects.equals(System.getenv("EXPERIMENT_ENABLE_JETTY12_FOR_JAVA"), "true")) {
System.setProperty("appengine.use.EE8", "true");
}
break;
case "java11": // EE8 and EE10 not supported
case "java8":
case "java8": // EE8 and EE10 not supported
System.clearProperty("appengine.use.EE8");
System.clearProperty("appengine.use.EE10");
break;
Expand Down

0 comments on commit 6f337b0

Please sign in to comment.