From e60bbce22af14088dabf0be5a8fa64c1cf9bdf82 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sat, 25 Nov 2017 11:58:05 -0800 Subject: Swap over to using `java.nio` APIs to make self-executable jars, instead of shelling out to `chmod` --- build.sc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'build.sc') diff --git a/build.sc b/build.sc index 7ccb2d32..034a0685 100755 --- a/build.sc +++ b/build.sc @@ -21,20 +21,20 @@ object Core extends ScalaModule { def basePath = pwd / 'core override def sources = pwd/'core/'src/'main/'scala - val cross = - for(jarLabel <- mill.define.Cross("jarA", "jarB", "jarC")) - yield new mill.Module{ - def printIt() = T.command{ - println("PRINTING IT: " + jarLabel) - } - def jar = T{ - val dest = T.ctx().dest - ammonite.ops.mkdir(dest/ammonite.ops.up) - ammonite.ops.cp(Core.jar().path, dest) - - PathRef(dest) - } - } +// val cross = +// for(jarLabel <- mill.define.Cross("jarA", "jarB", "jarC")) +// yield new mill.Module{ +// def printIt() = T.command{ +// println("PRINTING IT: " + jarLabel) +// } +// def jar = T{ +// val dest = T.ctx().dest +// ammonite.ops.mkdir(dest/ammonite.ops.up) +// ammonite.ops.cp(Core.jar().path, dest) +// +// PathRef(dest) +// } +// } object test extends this.Tests{ def basePath = pwd / 'core -- cgit v1.2.3