File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public abstract class AbstractFunctionMojo extends AbstractAppServiceMojo {
6262 private static final String FUNCTION_PRICING_KEY = "pricingTier" ;
6363 private static final String FUNCTION_DEPLOY_TO_SLOT_KEY = "isDeployToFunctionSlot" ;
6464 private static final String FUNCTION_NATIVE_EXECUTABLE_PATH = "nativeExecutablePath" ;
65+ private static final String FUNCTION_IS_NATIVE = "isNativeFunction" ;
6566
6667 //region Properties
6768 @ Parameter (defaultValue = "${project.build.finalName}" , readonly = true , required = true )
@@ -291,7 +292,7 @@ protected File getArtifact() throws AzureToolkitRuntimeException {
291292 }
292293
293294 protected boolean isNativeExecutable () {
294- return ! StringUtils .isEmpty (getNativeExecutablePath ());
295+ return StringUtils .isNotEmpty (getNativeExecutablePath ());
295296 }
296297
297298 protected File getHostJsonFile () {
@@ -378,7 +379,7 @@ public Map<String, String> getTelemetryProperties() {
378379 result .put (DISABLE_APP_INSIGHTS_KEY , String .valueOf (isDisableAppInsights ()));
379380 final boolean isDeployToFunctionSlot = getDeploymentSlotSetting () != null && StringUtils .isNotEmpty (getDeploymentSlotSetting ().getName ());
380381 result .put (FUNCTION_DEPLOY_TO_SLOT_KEY , String .valueOf (isDeployToFunctionSlot ));
381- result .put (FUNCTION_NATIVE_EXECUTABLE_PATH , nativeExecutablePath );
382+ result .put (FUNCTION_IS_NATIVE , String . valueOf ( isNativeExecutable ()) );
382383 return result ;
383384 }
384385 //endregion
You can’t perform that action at this time.
0 commit comments