Re: [sbt] How do you access the current State?

22 views
Skip to first unread message

Mark Harrah

unread,
Dec 3, 2012, 9:51:29 AM12/3/12
to simple-b...@googlegroups.com
Hi Andreas,

On Tue, 27 Nov 2012 08:30:50 -0800 (PST)
Andreas W <wind...@gmail.com> wrote:

>
> I am trying to access the current state, following instructions here:
> http://www.scala-sbt.org/release/docs/Extending/Build-State.html#project-related-data.
> Apparently, there exists an entity "currentState" which can be imported to
> get at the current state, as described here:
> http://www.scala-sbt.org/release/docs/Detailed-Topics/Console-Project.html.
> However, no matter what I do, I receive an error "not found: value
> currentState", and Google produces no reference to "currentState" other
> than the above link. If this mystical object existed, should it not at
> least produce hits from the source code or the API documentation? Anyway, I
> am baffled and stuck, any help would be much appreciated.

`currentState` is the binding only for the `console-project` task. When you are writing your own task, use the output of the `state` task. I've added a short section to the Build-State page that mentions this.

-Mark

> Thanks!
>
> Andreas
>
> --
> 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/-/15r4HG0rYgQJ.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>

Reply all
Reply to author
Forward
0 new messages