Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

closes #102: Print successfully created projects on separate lines

  • Loading branch information...
commit 38ce63150f6bd6fcece6afd093719fd2a74d34f9 1 parent 8304ae3
Heiko Seeberger authored
View
13 sbteclipse-core/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala
@@ -63,8 +63,6 @@ private object Eclipse {
val SettingFormat = """-([^:]*):?(.*)""".r
- val FileSep = System.getProperty("file.separator")
-
val FileSepPattern = FileSep.replaceAll("""\\""", """\\\\""")
val JreContainer = "org.eclipse.jdt.launching.JRE_CONTAINER"
@@ -132,7 +130,9 @@ private object Eclipse {
}
def onFailure(state: State)(errors: NonEmptyList[String]): State = {
- state.log.error("Could not create Eclipse project files: %s" format (errors.list mkString ", "))
+ state.log.error(
+ "Could not create Eclipse project files:%s%s".format(NewLine, errors.list mkString NewLine)
+ )
state.fail
}
@@ -141,7 +141,12 @@ private object Eclipse {
if (names.isEmpty)
state.log.warn("There was no project to create Eclipse project files for!")
else
- state.log.info("Successfully created Eclipse project files for project(s): %s" format (names mkString ", "))
+ state.log.info(
+ "Successfully created Eclipse project files for project(s):%s%s".format(
+ NewLine,
+ names mkString NewLine
+ )
+ )
state
}
View
4 sbteclipse-core/src/main/scala/com/typesafe/sbteclipse/core/package.scala
@@ -45,6 +45,10 @@ import scalaz.Scalaz._
package object core {
+ val NewLine = System.getProperty("line.separator")
+
+ val FileSep = System.getProperty("file.separator")
+
implicit val fileEqual = new Equal[File] {
def equal(file1: File, file2: File): Boolean = file1 == file2
}
Please sign in to comment.
Something went wrong with that request. Please try again.