summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlf Richter <h2000@users.noreply.github.com>2018-05-11 22:10:57 +0200
committerLi Haoyi <haoyi.sg@gmail.com>2018-05-11 13:10:57 -0700
commit032ae8b5138863c1523cf34a612ba1b19870713b (patch)
tree3a8565e29213fd704a0fcd0e6c0156b860e90810
parentcec13bea82e00b4e3cb62d4179aa7bb565e3e4ce (diff)
downloadmill-032ae8b5138863c1523cf34a612ba1b19870713b.tar.gz
mill-032ae8b5138863c1523cf34a612ba1b19870713b.tar.bz2
mill-032ae8b5138863c1523cf34a612ba1b19870713b.zip
Update 4 - Tasks.md (#319)
Fixed all T.source to T.sources
-rw-r--r--docs/pages/4 - Tasks.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/pages/4 - Tasks.md b/docs/pages/4 - Tasks.md
index edae6953..ef1ef054 100644
--- a/docs/pages/4 - Tasks.md
+++ b/docs/pages/4 - Tasks.md
@@ -32,7 +32,8 @@ def run(mainClsName: String) = T.command{
}
```
-Here, we have two `T.sources`, `sourceRoot` and `resourceRoot`, which act as the
+
+Here, we have two `T.sources`s, `sourceRoot` and `resourceRoot`, which act as the
roots of our task graph. `allSources` depends on `sourceRoot` by calling
`sourceRoot()` to extract it's value, `classFiles` depends on `allSources` the
same way, and `jar` depends on both `classFiles` and `resourceRoot`.
@@ -71,7 +72,7 @@ arbitrary result from it's inputs.
There are four primary kinds of *Tasks* that you should care about:
- [Targets](#targets), defined using `T{...}`
-- [Sources](#sources), defined using `T.source{...}`
+- [Sources](#sources), defined using `T.sources{...}`
- [Commands](#commands), defined using `T.command{...}`
### Targets
@@ -121,13 +122,13 @@ def sourceRootPath = pwd / 'src
def sourceRoots = T.sources{ sourceRootPath }
```
-`Source`s are defined using `T.source{ ... }`, taking one-or-more
+`Source`s are defined using `T.sources{ ... }`, taking one-or-more
`ammonite.ops.Path`s as arguments. A `Source` is a subclass of
`Target[Seq[PathRef]]`: this means that it's build signature/`hashCode` depends
not just on the path it refers to (e.g. `foo/bar/baz`) but also the MD5 hash of
the filesystem tree under that path.
-`T.source` also has an overload which takes `Seq[PathRef]`, to let you
+`T.sources` also has an overload which takes `Seq[PathRef]`, to let you
override-and-extend source lists the same way you would any other `T{...}`
definition: