azure-pipelines-tasks-webdeployment-common 4.265.0 → 4.268.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/webconfigutil.js +4 -5
package/package.json
CHANGED
package/webconfigutil.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.addWebConfigFile = exports.generateWebConfigFile = void 0;
|
|
|
4
4
|
const tl = require("azure-pipelines-task-lib/task");
|
|
5
5
|
const fs = require("fs");
|
|
6
6
|
const path = require("path");
|
|
7
|
-
const util = require("util");
|
|
8
7
|
function generateWebConfigFile(webConfigTargetPath, appType, substitutionParameters) {
|
|
9
8
|
// Get the template path for the given appType
|
|
10
9
|
var webConfigTemplatePath = path.join(__dirname, 'WebConfigTemplates', appType.toLowerCase());
|
|
@@ -93,16 +92,16 @@ function addWebConfigFile(folderPath, webConfigParameters, rootDirectoryPath) {
|
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
else if (appType == 'Go') {
|
|
96
|
-
if (
|
|
97
|
-
||
|
|
95
|
+
if ((webConfigParameters['GoExeFileName'] === null || webConfigParameters['GoExeFileName'] === undefined)
|
|
96
|
+
|| (webConfigParameters['GoExeFileName'].value === null || webConfigParameters['GoExeFileName'].value === undefined)
|
|
98
97
|
|| webConfigParameters['GoExeFileName'].value.length <= 0) {
|
|
99
98
|
throw Error(tl.loc('GoExeNameNotPresent'));
|
|
100
99
|
}
|
|
101
100
|
selectedAppTypeParams['GoExeFilePath'] = rootDirectoryPath + "\\" + webConfigParameters['GoExeFileName'].value;
|
|
102
101
|
}
|
|
103
102
|
else if (appType == 'java_springboot') {
|
|
104
|
-
if (
|
|
105
|
-
||
|
|
103
|
+
if ((webConfigParameters['JAR_PATH'] === null || webConfigParameters['JAR_PATH'] === undefined)
|
|
104
|
+
|| (webConfigParameters['JAR_PATH'].value === null || webConfigParameters['JAR_PATH'].value === undefined)
|
|
106
105
|
|| webConfigParameters['JAR_PATH'].value.length <= 0) {
|
|
107
106
|
throw Error(tl.loc('JarPathNotPresent'));
|
|
108
107
|
}
|