From 328f14acb567de574404068de2cc7a6bbd408519 Mon Sep 17 00:00:00 2001 From: giabao Date: Wed, 16 Sep 2015 14:32:40 +0700 Subject: [PATCH] fix issue #637 --- .../scala/com/typesafe/sbt/packager/archetypes/JavaApp.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/typesafe/sbt/packager/archetypes/JavaApp.scala b/src/main/scala/com/typesafe/sbt/packager/archetypes/JavaApp.scala index 661d60e63..e9e622104 100644 --- a/src/main/scala/com/typesafe/sbt/packager/archetypes/JavaApp.scala +++ b/src/main/scala/com/typesafe/sbt/packager/archetypes/JavaApp.scala @@ -79,7 +79,8 @@ object JavaAppPackaging extends AutoPlugin with JavaAppStartScript { bashScriptConfigLocation.value.collect { case location if options.nonEmpty => val configFile = dir / "tmp" / "conf" / "application.ini" - IO.writeLines(configFile, "# options from build" +: options) + //Do not use writeLines here because of issue #637 + IO.write(configFile, ("# options from build" +: options).mkString("\n")) val filteredMappings = universalMappings.filter { case (file, path) => path != appIniLocation }