How can I run a task after ivy dependencies are resolved ?

14 views
Skip to first unread message

Guillaume Massé

unread,
Apr 30, 2013, 11:05:19 PM4/30/13
to simple-b...@googlegroups.com

I want to run a task to resolve frontend dependencies ( css, js, etc ). What would be the task to depend on ? For example how can I run a task after ivy dependencies are resolved ?

http://stackoverflow.com/questions/16270359/how-do-i-execute-a-task-when-sbt-update-dependencies

Mark Harrah

unread,
May 1, 2013, 11:26:39 AM5/1/13
to simple-b...@googlegroups.com
Generally, make your task a dependency of where it is used. It sounds like the results of your resolution should be added to managedResources, so you should append the results of the custom frontend update task to managedResources and it will be automatically run whenever someone needs resources (like package, run, ...). Make sure that the update task checks if it needs to do work, since it will be run everytime those other tasks are run.

-Mark

> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
> To post to this group, send email to simple-b...@googlegroups.com.
> Visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages