diff --git a/Tasks/Gradle/gradlesonar.ts b/Tasks/Gradle/gradlesonar.ts index 4aede731f1ad..5104058ed454 100644 --- a/Tasks/Gradle/gradlesonar.ts +++ b/Tasks/Gradle/gradlesonar.ts @@ -11,6 +11,9 @@ import trm = require('vsts-task-lib/toolrunner'); import sqCommon = require('sonarqube-common/sonarqube-common'); import {SonarQubeEndpoint} from 'sonarqube-common/sonarqube-common'; +// Set up localization resource file +tl.setResourcePath(path.join( __dirname, 'task.json')); + // Apply arguments to enable SonarQube analysis export function applyEnabledSonarQubeArguments(gradleRun: trm.ToolRunner):trm.ToolRunner { if (!isSonarQubeEnabled()) { diff --git a/Tasks/Gradle/gradletask.ts b/Tasks/Gradle/gradletask.ts index c634386e0d50..787cfe534198 100644 --- a/Tasks/Gradle/gradletask.ts +++ b/Tasks/Gradle/gradletask.ts @@ -7,6 +7,9 @@ import path = require('path'); // Lowercased file names are to lessen the likelihood of xplat issues import sqGradle = require('./gradlesonar'); +// Set up localization resource file +tl.setResourcePath(path.join( __dirname, 'task.json')); + var wrapperScript = tl.getPathInput('wrapperScript', true, true); if (fs.existsSync(wrapperScript)) { // (The exists check above is not necessary, but we need to avoid this call when we are running L0 tests.) diff --git a/Tasks/Maven/mavencodeanalysis.ts b/Tasks/Maven/mavencodeanalysis.ts index bb8ad2bc6f95..d650108cd167 100644 --- a/Tasks/Maven/mavencodeanalysis.ts +++ b/Tasks/Maven/mavencodeanalysis.ts @@ -11,7 +11,7 @@ import pmd = require('./mavenpmd'); import {AnalysisResult} from './analysisresult'; import {ModuleAnalysis} from './moduleanalysis'; -// Set up for localization +// Set up localization resource file tl.setResourcePath(path.join( __dirname, 'task.json')); // Cache build variables are cached globally as they cannot change during the same build. diff --git a/Tasks/Maven/maventask.ts b/Tasks/Maven/maventask.ts index fabdfed88f05..61e79a57d549 100644 --- a/Tasks/Maven/maventask.ts +++ b/Tasks/Maven/maventask.ts @@ -11,6 +11,9 @@ import {SonarQubeEndpoint} from 'sonarqube-common/sonarqube-common'; // Lowercased file names are to lessen the likelihood of xplat issues import codeAnalysis = require('./mavencodeanalysis'); +// Set up localization resource file +tl.setResourcePath(path.join( __dirname, 'task.json')); + var mavenPOMFile: string = tl.getPathInput('mavenPOMFile', true, true); var javaHomeSelection: string = tl.getInput('javaHomeSelection', true); var mavenVersionSelection: string = tl.getInput('mavenVersionSelection', true);