scala - How to alias a sequence of tasks? -


i have custom tasks in sbt (0.12.2) project. let's call them a, b , c. when i'm in interactive mode of sbt can type a , task associated a executed. can type ;a;b;c , 3 tasks executed in sequence; same way ;clean;compile do. can interactive shell create alias run them all: alias all=;a;b;c. when type all tasks executed in obvious manner. i'm trying achieve creating alias inside of sbt configuration project.

this section of sbt documentation deals tasks, achieve this:

lazy val = taskkey[unit]("a", "does a") lazy val b = taskkey[unit]("b", "does b") lazy val c = taskkey[unit]("c", "does c") lazy val = taskkey[unit]("all", ";a;b;c")  lazy val tasksettings = seq(     <<= seq(a,b,c).dependon ) 

the problem have approach tasks combined , execution happens in parallel in contrast sequential, i'm trying achieve. how can create alias alias all=;a;b;c inside of sbt configuration file?

i've been looking same thing , found this request easy way of aliasing , the commit provides one: addcommandalias.

in build.sbt have:

addcommandalias("go", ";container:start;~copy-resources") 

as might guess, writing go in console run longer command sequence me.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -