diff options
author | rockjam <5min4eq.unity@gmail.com> | 2017-11-30 13:56:43 +0300 |
---|---|---|
committer | rockjam <5min4eq.unity@gmail.com> | 2017-11-30 13:56:43 +0300 |
commit | be7383f6440831d5961bf5ea56f10ec905174bfc (patch) | |
tree | 2404ae11cc3a2aae2674acb73a6a36522c0076e2 /scalaplugin/src/main/scala | |
parent | 2ac4cb2263812d2edc16faaf376b0386b990144e (diff) | |
download | mill-be7383f6440831d5961bf5ea56f10ec905174bfc.tar.gz mill-be7383f6440831d5961bf5ea56f10ec905174bfc.tar.bz2 mill-be7383f6440831d5961bf5ea56f10ec905174bfc.zip |
swap run and runMain commands
Diffstat (limited to 'scalaplugin/src/main/scala')
-rw-r--r-- | scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala b/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala index 3eae0f81..c9cf4a49 100644 --- a/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala +++ b/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala @@ -354,12 +354,12 @@ trait ScalaModule extends Module with TaskModule{ outer => PathRef(dest) } - def runMain() = T.command{ + def run() = T.command{ val main = mainClass().getOrElse(throw new RuntimeException("No mainClass provided!")) subprocess(main, runDepClasspath().map(_.path) :+ compile().path) } - def run(mainClass: String) = T.command{ + def runMain(mainClass: String) = T.command{ subprocess(mainClass, runDepClasspath().map(_.path) :+ compile().path) } |