final class Shell extends AnyRef
Defines shell utilities to run programs via system process.
runWithInterpreter
is necessary for testing because it allows us to shell out to an
independent shell whose environment variables we can modify (for example, we can modify
PATH so that the shell we run executes a mock version of bloop or python that fails).
Note that there is an exception when the interpretation is enabled: java
invocations
will be executed as they are because in Windows systems there can be execution problems
if the command is too long, which can happen with biggish classpaths
(see https://github.com/sbt/sbt-native-packager/issues/72).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Shell
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Type Members
- case class StatusCommand(code: Int, output: String) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addAdditionalEnvironmentVariables(env: Map[String, String]): Unit
- Attributes
- protected
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def deriveBspInvocation(serverCmd: List[String], useTcp: Boolean, tempDir: Path): (List[String], BspConnection)
- def detectBloopInSystemPath(binaryCmd: List[String], out: PrintStream): Option[ServerStatus]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPythonInClasspath: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def runBloopAbout(binaryCmd: List[String], out: PrintStream): Option[ServerStatus]
- def runCommand(cmd0: List[String], timeoutInSeconds: Option[Long], msgsBuffer: Option[ListBuffer[String]] = None): StatusCommand
- def startThread(name: String, daemon: Boolean)(thunk: ⇒ Unit): Thread
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )