On Tue, 7 Aug 2012 08:38:25 -0700 (PDT)
Dave <
dave.mah...@hotmail.com> wrote:
> And are capitals also allowed in the projectid or should I use lowercases
> and dashes for the spaces? Capitals seem to be allowed in 0.12.0
> e.g. "projectid-with-spaces" but "ProjectId-With-Spaces" works too
Yes. The error you saw originally was from a call to a method validID that checks whether a string is a valid ID. So, if you don't get an error, it is ok.
The allowed characters are letters, digits, '_', and '-' and it must start with a letter.
> And what is the use of projectid since it isn't used in build.sbt?
It is used as the unique identifier for a project. The 'project' and 'projects' commands current operates on IDs and keys operate on IDs. (Settings/tasks are scoped by project and the ID is used here. You don't often specify it explicitly because a default exists based on context.)
-Mark
> {{{
> import sbt._
> import Keys._
> object General {
> val settings = Defaults.defaultSettings ++ Seq (
> name := "ProjectId With Spaces",
> version := "0.1")
> }
> object TestBuild extends Build {
> lazy val main = Project ("projectid-with-spaces",
> file("."),
> settings = General.settings)
> }
>
>
>
>
>
> }}}
>
>
> On Tuesday, August 7, 2012 5:13:20 PM UTC+2, Mark Harrah wrote:
>
> > On Sun, 5 Aug 2012 04:54:51 -0700 (PDT)
> > Dave wrote:
> >
> > > With the sbt 0.11.3 launcher having spaces in the projectid in
> > Build.scala
> > > and in the foldername was no problem.
> >
> > It isn't a problem in the name or in the directory name. It was always a
> > problem in the ID, but perhaps it wasn't checked early enough before.
> >
> > -Mark
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/simple-build-tool/-/Dqaxxmja9CMJ.