Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
use \$ escape (future proof against eclipse-archived/ceylon#7190)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Sep 11, 2017
1 parent 3fce971 commit fb71ecb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,12 @@ shared class IdeaCeylonProject(ideArtifact, model)

shared actual String systemRepository =>
let (path = if (exists val = ideConfiguration.systemRepository, !val.empty) then val else null)
interpolateVariablesInRepositoryPath(path else "${ceylon.repo}");
interpolateVariablesInRepositoryPath(path else "\${ceylon.repo}");

String interpolateVariablesInRepositoryPath(String repoPath) {
value userHomePath = System.getProperty("user.home");
value pluginRepoPath = CeylonIdePlugin.embeddedCeylonRepository.absolutePath;
return repoPath.replace("${user.home}", userHomePath).replace("${ceylon.repo}", pluginRepoPath);
return repoPath.replace("\${user.home}", userHomePath).replace("\${ceylon.repo}", pluginRepoPath);
}

shared actual void completeCeylonModelParsing(BaseProgressMonitorChild monitor) {}
Expand Down Expand Up @@ -556,4 +556,4 @@ shared IdeaCeylonProject? findProjectForFile(PsiFile file) {
else {
return getCeylonProject(file);
}
}
}

0 comments on commit fb71ecb

Please sign in to comment.