Better auto project ID handling. Ref #776.

* Consolidate project ID validation and normalization into Project methods
* Provide an earlier and more detailed error message when the directory
  name can't be used for the project ID
This commit is contained in:
Mark Harrah 2013-06-23 19:57:30 -04:00
parent 141d608ed7
commit c924862d1c
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ package sbt
object StringUtilities
{
@deprecated("Different use cases require different normalization. Use Project.normalizeModuleID or normalizeProjectID instead.", "0.13.0")
def normalize(s: String) = s.toLowerCase.replaceAll("""\W+""", "-")
def nonEmpty(s: String, label: String)
{