use of com.google.cloud.tools.appengine.cloudsdk.CloudSdkAppEngineDevServer1 in project google-cloud-intellij by GoogleCloudPlatform.
the class AppEngineStandardRunTask method execute.
@Override
public void execute(ProcessStartListener startListener) {
CloudSdkService sdkService = CloudSdkService.getInstance();
// show a warning notification if the cloud sdk version is not supported
CloudSdkVersionNotifier.getInstance().notifyIfUnsupportedVersion();
CloudSdk.Builder sdkBuilder = new CloudSdk.Builder().sdkPath(sdkService.getSdkHomePath()).async(true).startListener(startListener);
if (javaSdk.getHomePath() != null) {
sdkBuilder.javaHome(Paths.get(javaSdk.getHomePath()));
}
CloudSdkAppEngineDevServer1 devServer = new CloudSdkAppEngineDevServer1(sdkBuilder.build());
devServer.run(runConfig);
UsageTrackerProvider.getInstance().trackEvent(GctTracking.APP_ENGINE_RUN).addMetadata(GctTracking.METADATA_LABEL_KEY, Strings.nullToEmpty(runnerId)).ping();
}
Aggregations