Skip to content

Commit

Permalink
Fixed failed ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Jul 7, 2020
1 parent 56e87ee commit 8750fe5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/scala/scommons/sbtplugin/util/BundlesUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,19 @@ object BundlesUtils {
bundle.setLastModified(lastModified)
}
}

def print(xs: Seq[File]): String = {
xs.map(_.toString).sorted.mkString("\n\t")
}

val total = bundles.size
if (generated.nonEmpty) {
logger(s"Generated ${generated.size} bundle files (out of $total)" +
s"\n\t${generated.mkString("\n\t")}")
s"\n\t${print(generated)}")
}
else if (total > 0) {
logger(s"Nothing to generate, all $total bundle files are up to date" +
s"\n\t${bundles.keys.map(new File(_, "bundle.json")).mkString("\n\t")}")
s"\n\t${print(bundles.keys.map(new File(_, "bundle.json")).toSeq)}")
}
}
}
Expand Down

0 comments on commit 8750fe5

Please sign in to comment.