mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 16:39:24 +02:00
Fix all imports
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
*/
|
||||
package xsbt.test
|
||||
|
||||
import scala.sys.process.Process
|
||||
import java.io.File
|
||||
import sbt.{ IO, Path }
|
||||
import sbt.io.{ IO, Path }
|
||||
import Path._
|
||||
|
||||
class FileCommands(baseDirectory: File) extends BasicStatementHandler {
|
||||
@@ -73,7 +74,7 @@ class FileCommands(baseDirectory: File) extends BasicStatementHandler {
|
||||
if (command.trim.isEmpty)
|
||||
scriptError("Command was empty.")
|
||||
else {
|
||||
val exitValue = sbt.Process(command :: args, baseDirectory) !;
|
||||
val exitValue = Process(command :: args, baseDirectory) !;
|
||||
if (exitValue != 0)
|
||||
sys.error("Nonzero exit value (" + exitValue + ")")
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.io.{ BufferedReader, File, InputStreamReader }
|
||||
import scala.util.parsing.combinator._
|
||||
import scala.util.parsing.input.Positional
|
||||
import Character.isWhitespace
|
||||
import sbt.IO
|
||||
import sbt.io.IO
|
||||
|
||||
/*
|
||||
statement*
|
||||
@@ -78,4 +78,4 @@ class TestScriptParser(handlers: Map[Char, StatementHandler]) extends RegexParse
|
||||
((newline | err("expected start character " + handlers.keys.mkString("(", "", ")"))) ~> failure("end of input"))
|
||||
|
||||
def newline = """\s*([\n\r]|$)""".r
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@ import java.io.File
|
||||
import org.specs2.mutable.Specification
|
||||
import org.specs2.matcher.FileMatchers
|
||||
import sbt._
|
||||
import sbt.Path._
|
||||
import sbt.io.IO
|
||||
import sbt.io.Path._
|
||||
|
||||
object FileCommandsSpec extends Specification with FileMatchers {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user