Permalink
Browse files

Follow package structure for generated `ScalaKeywords.scala`.

`ScalaKeywords.scala` is now being generated at location that
follows package structure.
  • Loading branch information...
1 parent f7be122 commit 56dff4855da120581d44b33f9d5b02fa9036c79a @gkossakowski gkossakowski committed Nov 6, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 project/Util.scala
View
@@ -124,12 +124,13 @@ object Util
{
val init = keywords.map(tn => '"' + tn + '"').mkString("Set(", ", ", ")")
val ObjectName = "ScalaKeywords"
+ val PackageName = "sbt"
val keywordsSrc =
-"""package sbt
+"""package %s
object %s {
val values = %s
-}""".format(ObjectName, init)
- val out = base / (ObjectName + ".scala")
+}""".format(PackageName, ObjectName, init)
+ val out = base / PackageName.replace('.', '/') / (ObjectName + ".scala")
IO.write(out, keywordsSrc)
out
}

0 comments on commit 56dff48

Please sign in to comment.