Skip to content

Commit ddbc53b

Browse files
ludochgae-java-bot
authored andcommitted
Force usage of jetty 12.1 instead of Jetty 9 or 12 for Cloud CLI local devappserver and staging phase in EE8 mode. It should be backward compatible and simplify client side deliverable.
PiperOrigin-RevId: 846893626 Change-Id: I6dc672e226f93a3442e4e75e96d456fac5e36de0
1 parent 8f0d2ab commit ddbc53b

File tree

79 files changed

+79
-1764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+79
-1764
lines changed

api_dev/src/main/java/com/google/appengine/tools/info/AppengineSdk.java

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ private static File findSdkRoot() {
9797
}
9898

9999
URL codeLocation = AppengineSdk.class.getProtectionDomain().getCodeSource().getLocation();
100-
String msg =
101-
"Unable to discover the Google App Engine SDK root. This code should be loaded "
102-
+ "from the SDK directory, but was instead loaded from "
103-
+ codeLocation
104-
+ ". Specify "
105-
+ "-Dappengine.sdk.root to override the SDK location.";
106100
File libDir;
107101
try {
108102
libDir = new File(codeLocation.toURI());
@@ -185,20 +179,6 @@ public static void includeTestingJarOnSharedPath(boolean val) {
185179
isDevAppServerTest = val;
186180
}
187181

188-
/**
189-
* Optional user libs reside under <sdk_root>/lib/opt/user. Each top-level directory under this
190-
* path identifies an optional user library, and each sub-directory for a specific library
191-
* represents a version of that library. So for example we could have:
192-
* lib/opt/user/mylib1/v1/mylib.jar lib/opt/user/mylib1/v2/mylib.jar
193-
* lib/opt/user/mylib2/v1/mylib.jar lib/opt/user/mylib2/v2/mylib.jar
194-
*
195-
* @return A {@link SortedMap} from the name of the library to an {@link OptionalLib} that
196-
* describes the library. The map is sorted by library name.
197-
*/
198-
private SortedMap<String, OptionalLib> determineOptionalUserLibs() {
199-
return determineOptionalLibs(new File(sdkRoot, "lib/opt/user"));
200-
}
201-
202182
/**
203183
* Optional tools libs reside under <sdk_root>/lib/opt/tools. Each top-level directory under this
204184
* path identifies an optional tools library, and each sub-directory for a specific library
@@ -278,31 +258,7 @@ public static AppengineSdk getSdk() {
278258
if (currentSdk != null) {
279259
return currentSdk;
280260
}
281-
282-
boolean useJetty121 = Boolean.getBoolean("appengine.use.jetty121");
283-
boolean useEE8 = Boolean.getBoolean("appengine.use.EE8");
284-
boolean useEE10 = Boolean.getBoolean("appengine.use.EE10");
285-
boolean useEE11 = Boolean.getBoolean("appengine.use.EE11");
286-
287-
if (useJetty121) { // Jetty121 case, supports EE8, EE10, EE11
288-
if (useEE8) {
289-
currentSdk = new Jetty121EE8Sdk();
290-
} else if (useEE10) {
291-
throw new IllegalArgumentException("appengine.use.EE10 is not supported in Jetty121");
292-
} else if (useEE11) {
293-
currentSdk = new Jetty121EE11Sdk();
294-
} else {
295-
currentSdk = new Jetty121EE11Sdk(); // EE11 is the default for Jetty121
296-
}
297-
} else { // Jetty12 case, supports EE8, EE10 or classic which is Jetty 9.4
298-
if (useEE8 || useEE10) {
299-
currentSdk = new Jetty12Sdk();
300-
} else if (useEE11) {
301-
throw new IllegalArgumentException("appengine.use.EE11 is not supported in Jetty12");
302-
} else {
303-
currentSdk = new ClassicSdk();
304-
}
305-
}
261+
currentSdk = SdkFactory.getSdk();
306262
return currentSdk;
307263
}
308264

api_dev/src/main/java/com/google/appengine/tools/info/ClassicSdk.java

Lines changed: 0 additions & 228 deletions
This file was deleted.

0 commit comments

Comments
 (0)