mirror of https://github.com/sbt/sbt.git
Make public the variant of cat that accepts Seq
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@976 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
parent
ef5d6870a1
commit
c19276d7bd
|
|
@ -22,7 +22,7 @@ object Process
|
|||
def apply(name: String, exitValue: => Int): ProcessBuilder = new DummyProcessBuilder(name, exitValue)
|
||||
|
||||
def cat(file: SourcePartialBuilder, files: SourcePartialBuilder*): ProcessBuilder = cat(file :: files.toList)
|
||||
private[this] def cat(files: Seq[SourcePartialBuilder]): ProcessBuilder =
|
||||
def cat(files: Seq[SourcePartialBuilder]): ProcessBuilder =
|
||||
{
|
||||
require(!files.isEmpty)
|
||||
files.map(_.cat).reduceLeft(_ #&& _)
|
||||
|
|
|
|||
Loading…
Reference in New Issue