@Mojo(name="run") public class RunMojo extends AbstractFunctionMojo
AbstractAzureMojo.DefaultUncaughtExceptionHandler, AbstractAzureMojo.RunnableWithException| Modifier and Type | Field and Description |
|---|---|
private static org.apache.maven.artifact.versioning.ComparableVersion |
FUNC_3 |
protected static String |
FUNC_CMD |
protected static String |
FUNC_HOST_START_CMD |
private static String |
FUNC_HOST_START_WITH_DEBUG_CMD |
private static String |
FUNC_VERSION_CMD |
private static String |
FUNCTION_CORE_TOOLS_OUT_OF_DATE |
private static org.apache.maven.artifact.versioning.ComparableVersion |
JAVA_9 |
protected String |
localDebugConfig
Config String for local debug
|
private static org.apache.maven.artifact.versioning.ComparableVersion |
MINIMUM_JAVA_9_SUPPORTED_VERSION |
private static org.apache.maven.artifact.versioning.ComparableVersion |
MINIMUM_JAVA_9_SUPPORTED_VERSION_V2 |
protected static String |
RUN_FUNCTIONS_FAILURE |
private static String |
RUNTIME_FOUND |
protected static String |
RUNTIME_NOT_FOUND |
private static String |
STAGE_DIR_FOUND |
private static String |
STAGE_DIR_NOT_FOUND |
appInsightsInstance, appInsightsKey, disableAppInsights, finalName, outputDirectory, pricingTier, region, runtime, skipappName, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentSlotSetting, deploymentType, MAVEN_PLUGIN_POSTFIX, PORTAL_URL_PATTERN, resourceGroupallowTelemetry, auth, authentication, authType, buildDirectory, DEPLOY, failsOnError, httpProxyHost, httpProxyPort, INSTALLATION_ID_KEY, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, settingsDecrypter, SUBSCRIPTION_ID_KEY, subscriptionId| Constructor and Description |
|---|
RunMojo() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkRuntimeCompatibility(CommandHandler handler) |
protected void |
checkRuntimeExistence(CommandHandler handler) |
protected void |
checkStageDirectoryExistence() |
protected void |
doExecute() |
protected String |
getCheckRuntimeCommand() |
String |
getLocalDebugConfig() |
protected String |
getStartFunctionHostCommand() |
protected String |
getStartFunctionHostWithDebugCommand() |
protected void |
runFunctions(CommandHandler handler) |
void |
setLocalDebugConfig(String localDebugConfig) |
getAppInsightsInstance, getAppInsightsKey, getAppSettingsWithDefaultValue, getFinalName, getFunctionApp, getFunctionExtensionVersion, getPricingTier, getRegion, getRuntime, getTelemetryProperties, isDisableAppInsights, isSkipMojogetAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getDeploymentType, getResourceGroup, getResourcePortalUrl, getResources, setDeploymentSlotexecute, executeWithTimeRecorder, getAuthenticationSetting, getAuthMethod, getAuthTypeEnum, getAzureClient, getAzureClientByAuthType, getAzureTokenWrapper, getBuildDirectoryAbsolutePath, getHttpProxyHost, getHttpProxyPort, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTelemetryProxy, getUserAgent, handleException, infoWithMultipleLines, initAuth, initializeAuthConfiguration, initTelemetry, isAuthConfigurationExist, isFailingOnError, isTelemetryAllowed, printCurrentSubscription, trackMojoFailure, trackMojoSkip, trackMojoStart, trackMojoSuccessprotected static final String FUNC_CMD
protected static final String FUNC_HOST_START_CMD
protected static final String RUN_FUNCTIONS_FAILURE
protected static final String RUNTIME_NOT_FOUND
private static final String STAGE_DIR_FOUND
private static final String STAGE_DIR_NOT_FOUND
private static final String RUNTIME_FOUND
private static final String FUNC_HOST_START_WITH_DEBUG_CMD
private static final org.apache.maven.artifact.versioning.ComparableVersion JAVA_9
private static final org.apache.maven.artifact.versioning.ComparableVersion FUNC_3
private static final org.apache.maven.artifact.versioning.ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION
private static final org.apache.maven.artifact.versioning.ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION_V2
private static final String FUNC_VERSION_CMD
private static final String FUNCTION_CORE_TOOLS_OUT_OF_DATE
@Parameter(property="localDebugConfig",
defaultValue="transport=dt_socket,server=y,suspend=n,address=5005")
protected String localDebugConfig
public String getLocalDebugConfig()
public void setLocalDebugConfig(String localDebugConfig)
protected void doExecute()
throws AzureExecutionException
doExecute in class AbstractAzureMojoAzureExecutionExceptionprotected void checkStageDirectoryExistence()
throws AzureExecutionException
AzureExecutionExceptionprotected void checkRuntimeExistence(CommandHandler handler) throws AzureExecutionException
AzureExecutionExceptionprotected void runFunctions(CommandHandler handler) throws AzureExecutionException
AzureExecutionExceptionprivate void checkRuntimeCompatibility(CommandHandler handler) throws AzureExecutionException
AzureExecutionExceptionprotected String getCheckRuntimeCommand()
protected String getStartFunctionHostCommand()
protected String getStartFunctionHostWithDebugCommand()
Copyright © 2021. All rights reserved.