Skip to content

Commit

Permalink
NEW (Extension) @W-15639920@ CLI changes to pass java env variable to…
Browse files Browse the repository at this point in the history
… enable caching and path for delta runs - part 2
  • Loading branch information
jag-j committed Sep 5, 2024
1 parent 1f75111 commit 1ab7f49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/EngineOptionsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ abstract class CommonEngineOptionsFactory implements EngineOptionsFactory {
if (this.shouldSfgeRun(inputs)) {
const sfgeConfig: SfgeConfig = {
projectDirs: this.inputProcessor.resolveProjectDirPaths(inputs),
cachepath: inputs.cachepath,
enablecaching: inputs.enablecaching
cachepath: inputs.cachepath as string,
enablecaching: inputs.enablecaching as boolean
};
options.set(CUSTOM_CONFIG.SfgeConfig, JSON.stringify(sfgeConfig));
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sfge/SfgeWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class SfgeExecuteWrapper extends AbstractSfgeWrapper {
if (this.ruleDisableWarningViolation != null) {
flags.push(`-DSFGE_RULE_DISABLE_WARNING_VIOLATION=${this.ruleDisableWarningViolation.toString()}`);
}
if (this.enablecaching) {
if (this.enablecaching != null && this.enablecaching) {
flags.push(`-DSFGE_DISABLE_CACHING=false`);
}
if (this.cachepath != null) {
Expand Down

0 comments on commit 1ab7f49

Please sign in to comment.