Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Apr 6, 2018
1 parent 924822f commit 779e453
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def launcherScript(jvmArgs: Seq[String],
universalScript(
shellCommands = {
def java(mainClass: String) =
s"""exec java $jvmArgsStr $$JAVA_OPTS -cp "${shellClassPath.mkString(":")}" mill.Main "$$@""""
s"""exec java $jvmArgsStr $$JAVA_OPTS -cp "${shellClassPath.mkString(":")}" $mainClass "$$@""""

s"""case "$$1" in
| -i | --interactive )
Expand Down
2 changes: 1 addition & 1 deletion core/src/mill/eval/Evaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ object Evaluator{
def classLoaderSig = Thread.currentThread().getContextClassLoader match {
case scl: SpecialClassLoader => scl.classpathSignature
case ucl: URLClassLoader =>
SpecialClassLoader.initialClasspathSignature(ucl).map{ case (k, v) => (Right(k), v)}
SpecialClassLoader.initialClasspathSignature(ucl)
case _ => Nil
}
case class Timing(label: String,
Expand Down
4 changes: 2 additions & 2 deletions main/test/src/mill/eval/JavaCompileJarTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import mill.util.Strict.Agg
import utest._
import mill._
object JavaCompileJarTests extends TestSuite{
def compileAll(sources: Seq[PathRef])(implicit ctx: Dest) = {
def compileAll(sources: mill.util.Loose.Agg[PathRef])(implicit ctx: Dest) = {
mkdir(ctx.dest)
import ammonite.ops._
%("javac", sources.map(_.path.toString()), "-d", ctx.dest)(wd = ctx.dest)
%("javac", sources.map(_.path.toString()).toSeq, "-d", ctx.dest)(wd = ctx.dest)
PathRef(ctx.dest)
}

Expand Down
14 changes: 7 additions & 7 deletions scalalib/test/src/mill/scalalib/publish/IvyTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ object IvyTests extends TestSuite {
'topLevel - {
val info = singleNode(fullIvy \ "info")
assert(
singleAttr(info, "organisation") == artifact.group
, singleAttr(info, "module") == artifact.id
, singleAttr(info, "revision") == artifact.version
singleAttr(info, "organisation") == artifact.group,
singleAttr(info, "module") == artifact.id,
singleAttr(info, "revision") == artifact.version
)
}

Expand All @@ -40,10 +40,10 @@ object IvyTests extends TestSuite {

dependencies.zipWithIndex.foreach { case (dep, index) =>
assert(
singleAttr(dep, "org") == ivyDeps(index).artifact.group
, singleAttr(dep, "name") == ivyDeps(index).artifact.id
, singleAttr(dep, "rev") == ivyDeps(index).artifact.version
, (dep \ "exclude").zipWithIndex forall { case (exclude, j) =>
singleAttr(dep, "org") == ivyDeps(index).artifact.group,
singleAttr(dep, "name") == ivyDeps(index).artifact.id,
singleAttr(dep, "rev") == ivyDeps(index).artifact.version,
(dep \ "exclude").zipWithIndex forall { case (exclude, j) =>
singleAttr(exclude, "org") == ivyDeps(index).exclusions(j)._1 &&
singleAttr(exclude, "name") == ivyDeps(index).exclusions(j)._2
}
Expand Down

0 comments on commit 779e453

Please sign in to comment.