summaryrefslogtreecommitdiff
path: root/core/src/test/scala/mill/JavaCompileJarTests.scala
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-11-18 05:37:11 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-11-18 05:51:12 -0800
commit933a3df121e49cff240b5e29d9dab763562c44ef (patch)
tree5e84cfb714c3e2e19e7651ead4068af6b3df9c54 /core/src/test/scala/mill/JavaCompileJarTests.scala
parent7b9c6526965d997d5a7d2cb38a206b9c4af105c8 (diff)
downloadmill-933a3df121e49cff240b5e29d9dab763562c44ef.tar.gz
mill-933a3df121e49cff240b5e29d9dab763562c44ef.tar.bz2
mill-933a3df121e49cff240b5e29d9dab763562c44ef.zip
Implement `T.persistent{}` targets, which have their dest directory persist between runs so the task implementation can use it as a cache
Diffstat (limited to 'core/src/test/scala/mill/JavaCompileJarTests.scala')
-rw-r--r--core/src/test/scala/mill/JavaCompileJarTests.scala6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/src/test/scala/mill/JavaCompileJarTests.scala b/core/src/test/scala/mill/JavaCompileJarTests.scala
index 3e470b9d..8050ef6a 100644
--- a/core/src/test/scala/mill/JavaCompileJarTests.scala
+++ b/core/src/test/scala/mill/JavaCompileJarTests.scala
@@ -16,11 +16,8 @@ object JavaCompileJarTests extends TestSuite{
import ammonite.ops._
%("javac", sources.map(_.path.toString()), "-d", dest)(wd = dest)
PathRef(dest)
-//
}
-
-
val tests = Tests{
'javac {
val workspacePath = pwd / 'target / 'workspace / 'javac
@@ -48,10 +45,10 @@ object JavaCompileJarTests extends TestSuite{
%%('java, "-cp", classFiles().path, mainClsName)
}
}
+
import Build._
val mapping = Discovered.mapping(Build)
-
def eval[T](t: Task[T]): (T, Int) = {
val evaluator = new Evaluator(workspacePath, mapping)
val evaluated = evaluator.evaluate(OSet(t))
@@ -163,7 +160,6 @@ object JavaCompileJarTests extends TestSuite{
runOutput3.out.string == "New Cls!\n",
evalCount3 == 1
)
-
}
}
}