Class ListMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.microsoft.azure.maven.AbstractAzureMojo
-
- com.microsoft.azure.maven.appservice.AbstractAppServiceMojo
-
- com.microsoft.azure.maven.function.AbstractFunctionMojo
-
- com.microsoft.azure.maven.function.ListMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="list") public class ListMojo extends AbstractFunctionMojo
The list mojo is used to provide Java Azure Functions templates information, which is used by other tools such as VS Code Azure Functions extension.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringBINDINGS_ENDprotected static StringBINDINGS_FILEprotected static StringBINDINGS_STARTprotected static StringRESOURCES_ENDprotected static StringRESOURCES_FILEprotected static StringRESOURCES_STARTprotected static StringTEMPLATES_ENDprotected static StringTEMPLATES_FILEprotected static StringTEMPLATES_START-
Fields inherited from class com.microsoft.azure.maven.function.AbstractFunctionMojo
alwaysReadyInstances, appInsightsInstance, appInsightsKey, artifactPath, AZURE_FUNCTIONS_JAVA_LIBRARY, CAN_NOT_FIND_ARTIFACT, disableAppInsights, enableDistributedTracing, environment, finalName, FUNCTION_EXTENSION_LIBRARY_MAP, HOST_JSON, hostJson, instanceSize, LOCAL_SETTINGS_JSON, localSettingsJson, maximumInstances, maxReplicas, minReplicas, outputDirectory, parser, pricingTier, region, runtime, skip, storageAccountName, storageAccountResourceGroup, TRIGGER_TYPE
-
Fields inherited from class com.microsoft.azure.maven.appservice.AbstractAppServiceMojo
appName, appServiceClient, appServicePlanName, appServicePlanResourceGroup, appSettings, deploymentSlotSetting, MAVEN_PLUGIN_POSTFIX, resourceGroup
-
Fields inherited from class com.microsoft.azure.maven.AbstractAzureMojo
allowTelemetry, auth, authType, buildDirectory, COMPILE_LEVEL_NOT_SUPPORTED, FAILED_TO_GET_VALID_RUNTIMES, failsOnError, failsOnRuntimeValidationError, INSTALLATION_ID_KEY, mavenResourcesFiltering, plugin, PLUGIN_NAME_KEY, PLUGIN_VERSION_KEY, project, session, SESSION_ID_KEY, settings, settingsDecrypter, SUBSCRIPTION_ID_KEY, SUBSCRIPTION_NOT_FOUND, SUBSCRIPTION_TEMPLATE, subscriptionId, telemetries, telemetryProxy, USING_AZURE_ENVIRONMENT
-
-
Constructor Summary
Constructors Constructor Description ListMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()protected voidprintToSystemOut(String file)-
Methods inherited from class com.microsoft.azure.maven.function.AbstractFunctionMojo
getAppInsightsInstance, getAppInsightsKey, getArtifact, getBundleVersion, getFinalName, getFunctionLibraryVersion, getHostJsonFile, getLocalSettingsJsonFile, getRegion, getRuntimeConfiguration, getTelemetryProperties, isDisableAppInsights, isSkipMojo, readHostJson, validateAppName, validateFunctionCompatibility
-
Methods inherited from class com.microsoft.azure.maven.appservice.AbstractAppServiceMojo
getAppName, getAppServicePlanName, getAppServicePlanResourceGroup, getAppSettings, getDeploymentSlotSetting, getDeploymentStagingDirectoryPath, getResourceGroup, getResources, initAzureAppServiceClient, printCurrentSubscription
-
Methods inherited from class com.microsoft.azure.maven.AbstractAzureMojo
afterMojoExecution, beforeMojoExecution, checkSubscription, execute, executeWithTimeRecorder, getActualAuthType, getAllowTelemetry, getBuildDirectoryAbsolutePath, getCompileLevel, getFailsOnError, getFailsOnRuntimeValidationError, getInstallationId, getMavenResourcesFiltering, getPluginName, getPluginVersion, getProject, getSession, getSessionId, getSettings, getSubscriptionId, getTargetSubscriptionId, getTelemetries, getTelemetryProxy, getUserAgent, getValidRuntimes, highlightDefaultValue, infoWithMultipleLines, initTelemetryProxy, loginAzure, loginAzure, onMojoError, onSkipped, printCredentialDescription, selectSubscription, selectSubscription, trackMojoFailure, updateTelemetryProperties, validateArtifactCompileVersion
-
-
-
-
Field Detail
-
TEMPLATES_START
protected static final String TEMPLATES_START
- See Also:
- Constant Field Values
-
TEMPLATES_END
protected static final String TEMPLATES_END
- See Also:
- Constant Field Values
-
BINDINGS_START
protected static final String BINDINGS_START
- See Also:
- Constant Field Values
-
BINDINGS_END
protected static final String BINDINGS_END
- See Also:
- Constant Field Values
-
RESOURCES_START
protected static final String RESOURCES_START
- See Also:
- Constant Field Values
-
RESOURCES_END
protected static final String RESOURCES_END
- See Also:
- Constant Field Values
-
TEMPLATES_FILE
protected static final String TEMPLATES_FILE
- See Also:
- Constant Field Values
-
BINDINGS_FILE
protected static final String BINDINGS_FILE
- See Also:
- Constant Field Values
-
RESOURCES_FILE
protected static final String RESOURCES_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doExecute
protected void doExecute() throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException- Specified by:
doExecutein classcom.microsoft.azure.maven.AbstractAzureMojo- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
printToSystemOut
protected void printToSystemOut(String file) throws IOException
- Throws:
IOException
-
-