Search in sources :

Example 1 with CloudSdkAppEngineDevServer1

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();
}
Also used : CloudSdkAppEngineDevServer1(com.google.cloud.tools.appengine.cloudsdk.CloudSdkAppEngineDevServer1) CloudSdkService(com.google.cloud.tools.intellij.appengine.sdk.CloudSdkService) CloudSdk(com.google.cloud.tools.appengine.cloudsdk.CloudSdk)

Aggregations

CloudSdk (com.google.cloud.tools.appengine.cloudsdk.CloudSdk)1 CloudSdkAppEngineDevServer1 (com.google.cloud.tools.appengine.cloudsdk.CloudSdkAppEngineDevServer1)1 CloudSdkService (com.google.cloud.tools.intellij.appengine.sdk.CloudSdkService)1