reload hook

24 views
Skip to first unread message

pawel.panasewicz

unread,
Aug 14, 2012, 6:58:28 PM8/14/12
to simple-b...@googlegroups.com
I have a task in my build, that spawns a process. 

Sometimes I reload the build definition, but the process is still running. I want to prevent such situation. Everytime the build definition is reloaded I need to make check if spawned process is running and optionally finish it.


Is there in SBT some piece of finally code, where I could make such cleanup?

Regards
Pawel


Eugene Vigdorchik

unread,
Aug 15, 2012, 8:38:55 AM8/15/12
to simple-b...@googlegroups.com
Look at onUnload key. The code assigned to it will be executed on the
old state when the project is reloaded.

Eugene.
>
> Regards
> Pawel
>
>
> --
> 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/-/lQSZ93w1T80J.
> 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.

pawel.panasewicz

unread,
Aug 16, 2012, 4:03:47 AM8/16/12
to simple-b...@googlegroups.com
Thanx.

Paweł
Reply all
Reply to author
Forward
0 new messages