Skip to content

Commit 1ab7f49

Browse files
committed
NEW (Extension) @W-15639920@ CLI changes to pass java env variable to enable caching and path for delta runs - part 2
1 parent 1f75111 commit 1ab7f49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/EngineOptionsFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ abstract class CommonEngineOptionsFactory implements EngineOptionsFactory {
2929
if (this.shouldSfgeRun(inputs)) {
3030
const sfgeConfig: SfgeConfig = {
3131
projectDirs: this.inputProcessor.resolveProjectDirPaths(inputs),
32-
cachepath: inputs.cachepath,
33-
enablecaching: inputs.enablecaching
32+
cachepath: inputs.cachepath as string,
33+
enablecaching: inputs.enablecaching as boolean
3434
};
3535
options.set(CUSTOM_CONFIG.SfgeConfig, JSON.stringify(sfgeConfig));
3636
}

src/lib/sfge/SfgeWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class SfgeExecuteWrapper extends AbstractSfgeWrapper {
242242
if (this.ruleDisableWarningViolation != null) {
243243
flags.push(`-DSFGE_RULE_DISABLE_WARNING_VIOLATION=${this.ruleDisableWarningViolation.toString()}`);
244244
}
245-
if (this.enablecaching) {
245+
if (this.enablecaching != null && this.enablecaching) {
246246
flags.push(`-DSFGE_DISABLE_CACHING=false`);
247247
}
248248
if (this.cachepath != null) {

0 commit comments

Comments
 (0)