@@ -55,16 +55,16 @@ class SbtFile(var name: String, var version: String, var plugins: List[Plugin],
55
55
val sbtContent = new StringBuilder (" // GENERATED FILE USING THE CHAT OVERFLOW PLUGIN FRAMEWORK\n " )
56
56
57
57
if (name != " " ) {
58
- sbtContent append " \n name := \" %s\" " .format(name)
58
+ sbtContent append " \n name := \" %s\" " .format(name.replaceAll( " \\ " , " " ) )
59
59
}
60
60
61
61
if (version != " " ) {
62
- sbtContent append " \n version := \" %s\" " .format(version)
62
+ sbtContent append " \n version := \" %s\" " .format(version.replaceAll( " \\ " , " " ) )
63
63
}
64
64
65
65
if (plugins.nonEmpty) {
66
66
for (plugin <- plugins) {
67
- var pluginLine = " \n lazy val %s = (project in file(\" %s\" ))" .format(plugin.normalizedName, plugin.pluginDirectoryPath)
67
+ var pluginLine = " \n lazy val `%s` = (project in file(\" %s\" ))" .format(plugin.normalizedName, plugin.pluginDirectoryPath)
68
68
69
69
if (apiProjectPath != " " ) {
70
70
pluginLine += " .dependsOn(apiProject)"
@@ -79,8 +79,8 @@ class SbtFile(var name: String, var version: String, var plugins: List[Plugin],
79
79
}
80
80
81
81
if (defineRoot) {
82
- var rootLine = " \n\n lazy val root = (project in file(\" .\" )).aggregate(apiProject,%s)"
83
- .format(plugins.map(_ .normalizedName).mkString(" , " ))
82
+ var rootLine = " \n\n lazy val root = (project in file(\" .\" )).aggregate(apiProject, %s)"
83
+ .format(plugins.map(p => s " ` ${p .normalizedName} ` " ).mkString(" , " ))
84
84
85
85
if (apiProjectPath != " " ) {
86
86
rootLine += " .dependsOn(apiProject)"
0 commit comments