mirror of https://github.com/sbt/sbt.git
Implicit conversion from Seq[File] and Seq[URL] to Seq[SourcePartialBuilder]
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@978 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
parent
42489b04a1
commit
cec0079304
|
|
@ -18,6 +18,7 @@ object Process
|
|||
implicit def apply(file: File): FilePartialBuilder = new FileBuilder(file)
|
||||
implicit def apply(url: URL): URLPartialBuilder = new URLBuilder(url)
|
||||
implicit def apply(command: scala.xml.Elem): ProcessBuilder = apply(command.text.trim)
|
||||
implicit def applySeq[T](builders: Seq[T])(implicit convert: T => SourcePartialBuilder): Seq[SourcePartialBuilder] = builders.map(convert)
|
||||
def apply(value: Boolean): ProcessBuilder = apply(value.toString, if(value) 0 else 1)
|
||||
def apply(name: String, exitValue: => Int): ProcessBuilder = new DummyProcessBuilder(name, exitValue)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue