-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
32 lines (24 loc) · 1.08 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {VariabilityManager} from "./src/main/VariabilityManager.js";
function variability(sourceDirectory, targetDirectory, configFile) {
sourceDirectory = sourceDirectory.trim();
targetDirectory = targetDirectory.trim();
configFile = configFile.trim();
var invalidArguments = (sourceDirectory == '') || (sourceDirectory == undefined) ||
(targetDirectory == '') || (targetDirectory == undefined) ||
(configFile == '') || (configFile == undefined);
console.log(invalidArguments);
if (invalidArguments) {
return 0;
} else {
sourceDirectory = sourceDirectory;
targetDirectory = targetDirectory;
configFile = configFile;
let varion = new VariabilityManager(sourceDirectory, targetDirectory, configFile);
varion.checkConfigCoverage();
varion.applyVariabilities();
}
}
variability('/home/navid/dev/Varion/src/testScripts'
, '/home/navid/Desktop/target'
, '/home/navid/dev/Varion/src/configuration/dev-variability.json'
);