From 15553c02b8de09b9d8503ba6dd27e606fa706eb9 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Mon, 30 Apr 2018 19:37:26 +0200 Subject: [PATCH] Resolves #305, use an English locale when excuting java command line Otherwise we cannot rely on the exception message because the error returned by the java command line will be localized. --- main/test/src/mill/eval/JavaCompileJarTests.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/test/src/mill/eval/JavaCompileJarTests.scala b/main/test/src/mill/eval/JavaCompileJarTests.scala index 1ac00c79b16..9022f7f3ed6 100644 --- a/main/test/src/mill/eval/JavaCompileJarTests.scala +++ b/main/test/src/mill/eval/JavaCompileJarTests.scala @@ -41,7 +41,7 @@ object JavaCompileJarTests extends TestSuite{ def jar = T{ Jvm.createJar(Loose.Agg(classFiles().path) ++ resourceRoot().map(_.path)) } def run(mainClsName: String) = T.command{ - %%('java, "-cp", classFiles().path, mainClsName) + %%('java, "-Duser.language=en", "-cp", classFiles().path, mainClsName) } }