Skip to content

Commit

Permalink
Use library name as filename, as Idea changes to it anyway
Browse files Browse the repository at this point in the history
While at it, replace replaces (sic) with replaceAll regexp.
  • Loading branch information
mpeltonen committed Dec 5, 2012
1 parent 629537f commit 7246ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/sbtidea/IdeaProjectDescriptor.scala
Expand Up @@ -129,7 +129,7 @@ class IdeaProjectDescriptor(val projectInfo: IdeaProjectInfo, val env: IdeaProje
librariesDir.mkdirs
for (ideaLib <- projectInfo.ideaLibs) {
// MUST all be _
val filename = ideaLib.id.replace('.', '_').replace('-', '_') + ".xml"
val filename = ideaLib.name.replaceAll("[:\\.\\s-]", "_") + ".xml"
saveFile(librariesDir, filename, libraryTableComponent(ideaLib))
}

Expand Down

0 comments on commit 7246ed1

Please sign in to comment.