diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-13 22:18:05 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-13 22:18:05 -0800 |
commit | 7589250f87dd70e52cec923dcda5d554a4c7bbcb (patch) | |
tree | c88d42484ac82ee52790adb7fcde070baba19190 /core/src/main/scala/mill/define/Task.scala | |
parent | 38ca4a5005dbaee94e674c41bb7262d603eec73c (diff) | |
download | mill-7589250f87dd70e52cec923dcda5d554a4c7bbcb.tar.gz mill-7589250f87dd70e52cec923dcda5d554a4c7bbcb.tar.bz2 mill-7589250f87dd70e52cec923dcda5d554a4c7bbcb.zip |
Remove targets generation in Mirror, in favor of just using java.reflect
Diffstat (limited to 'core/src/main/scala/mill/define/Task.scala')
-rw-r--r-- | core/src/main/scala/mill/define/Task.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/scala/mill/define/Task.scala b/core/src/main/scala/mill/define/Task.scala index eac64cd5..2a670d21 100644 --- a/core/src/main/scala/mill/define/Task.scala +++ b/core/src/main/scala/mill/define/Task.scala @@ -42,6 +42,7 @@ abstract class Task[+T] extends Task.Ops[T] with Applyable[Task, T]{ trait NamedTask[+T] extends Task[T]{ def ctx: Module.Ctx + def label = ctx.segment match{case Segment.Label(v) => v} } trait Target[+T] extends NamedTask[T]{ override def asTarget = Some(this) |