Skip to content

Commit

Permalink
Merge pull request #94 from PalladioSimulator/fix_project_specific_rules
Browse files Browse the repository at this point in the history
Actually look for rules in the specified folder
  • Loading branch information
dr6817 authored Aug 7, 2024
2 parents 26bc1f6 + ae2df78 commit a40e645
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class ProjectSpecificRulesProxy implements Rule {
val configuredValue = config.getConfig(Rule).getConfig(RULE_ID, RULE_PATH_KEY)
if (configuredValue !== null && !configuredValue.blank) {
return new File(configuredValue)
} else if (config.getOutputFolder() !== null) {
val localURI = CommonPlugin.asLocalURI(config.getOutputFolder())
} else if (config.rulesFolder !== null) {
val localURI = CommonPlugin.asLocalURI(config.rulesFolder)
return new File(localURI.devicePath())
}
throw new IllegalArgumentException("No path for project-specific rules is specified");
Expand Down

0 comments on commit a40e645

Please sign in to comment.