Sbt: Add a SettingKey to define the initial project on (re)load

Created on 29 Mar 2014  路  4Comments  路  Source: sbt/sbt

From https://groups.google.com/d/msg/sbt-dev/dB1TmFN8pvw/4JF_3CzPAJYJ:

_"In either case, feel free to open an enhancement ticket about this if it's causing signfiicant issues. We can probably create a setting the reload command will read when setting the initial project, rather than always using "root"."_

Enhancement uncategorized

Most helpful comment

Copy (and tweaked) workaround from #2405:

onLoad in Global ~= (_ andThen ("project foo" :: _))

All 4 comments

Submitted https://github.com/sbt/sbt/pull/1305 to get this going. Please review and guide me to make it complete. I call myself stuck on trying to understand the sbt sources and the way projects are loaded.

Copy (and tweaked) workaround from #2405:

onLoad in Global ~= (_ andThen ("project foo" :: _))

It could've been easier, but the workaround by @dwijnand makes a lot of sense to me and so I'm closing the issue.

I agree it could and should be easier. Do you mind if we use this issue to track the addition of a more formal way to define the initial project?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xerial picture xerial  路  3Comments

christobill picture christobill  路  3Comments

xuwei-k picture xuwei-k  路  4Comments

dwijnand picture dwijnand  路  3Comments

eed3si9n picture eed3si9n  路  3Comments