diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-25 11:58:05 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-25 11:58:05 -0800 |
commit | e60bbce22af14088dabf0be5a8fa64c1cf9bdf82 (patch) | |
tree | 7c8a4becc57b8c77a786990adf32d0cbdc178488 /build.sc | |
parent | 15351c7239a835c28cff140bead740a0e408b285 (diff) | |
download | mill-e60bbce22af14088dabf0be5a8fa64c1cf9bdf82.tar.gz mill-e60bbce22af14088dabf0be5a8fa64c1cf9bdf82.tar.bz2 mill-e60bbce22af14088dabf0be5a8fa64c1cf9bdf82.zip |
Swap over to using `java.nio` APIs to make self-executable jars, instead of shelling out to `chmod`
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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 |