mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Remove runAfter().
This commit is contained in:
parent
4a2e33d777
commit
c98d6e4311
1 changed files with 3 additions and 5 deletions
|
@ -12,21 +12,19 @@ import javax.inject.Singleton
|
|||
@Singleton
|
||||
public class TaskManager @Inject constructor(val plugins: Plugins, val args: Args) {
|
||||
private val runBefore = TreeMultimap.create<String, String>()
|
||||
private val runAfter = TreeMultimap.create<String, String>()
|
||||
private val alwaysRunAfter = TreeMultimap.create<String, String>()
|
||||
|
||||
/**
|
||||
* Called by plugins to indicate task dependencies defined at runtime. Keys depend on values.
|
||||
* Declare that `task1` depends on `task2`.
|
||||
*
|
||||
* Note: there is no runAfter on this class since a runAfter(a, b) in a task simply translates
|
||||
* to a runBefore(b, a) here.
|
||||
*/
|
||||
fun runBefore(task1: String, task2: String) {
|
||||
runBefore.put(task1, task2)
|
||||
}
|
||||
|
||||
fun runAfter(task1: String, task2: String) {
|
||||
runAfter.put(task1, task2)
|
||||
}
|
||||
|
||||
fun alwaysRunAfter(task1: String, task2: String) {
|
||||
alwaysRunAfter.put(task1, task2)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue