trait WatchConfig extends AnyRef
Provides a number of configuration options for continuous execution.
- Source
- Watched.scala
- Alphabetic
- By Inheritance
- WatchConfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
fileEventMonitor: FileEventMonitor[FileAttributes]
The sbt.io.FileEventMonitor that is used to monitor the file system.
The sbt.io.FileEventMonitor that is used to monitor the file system.
- returns
an sbt.io.FileEventMonitor instance.
-
abstract
def
handleInput(inputStream: InputStream): Action
A function that is periodically invoked to determine whether the watch should stop or trigger.
A function that is periodically invoked to determine whether the watch should stop or trigger. Usually this will read from System.in to react to user input.
- returns
an Action that will determine the next step in the watch.
-
abstract
def
logger: Logger
A logger.
A logger.
- returns
a logger
-
abstract
def
onWatchEvent(event: Event): Action
Callback that is invoked whenever a file system vent is detected.
-
abstract
def
onWatchTerminated(action: Action, command: String, state: State): State
Transforms the state after the watch terminates.
Transforms the state after the watch terminates.
- action
the Action that caused the build to terminate
- command
the command that the watch was repeating
- state
the initial state prior to the start of continuous execution
- returns
the updated state.
-
abstract
def
preWatch(count: Int, lastStatus: Boolean): Action
This is run before each watch iteration and if it returns true, the watch is terminated.
This is run before each watch iteration and if it returns true, the watch is terminated.
- count
The current number of watch iterations.
- lastStatus
true if the previous task execution completed successfully
- returns
the Action to apply
-
abstract
def
triggeredMessage(path: Path, count: Int): Option[String]
The optional message to log when a build is triggered.
The optional message to log when a build is triggered.
- path
the path that triggered the vuild
- count
the current iteration
- returns
an optional log message.
-
abstract
def
watchingMessage(count: Int): Option[String]
The optional message to log before each watch iteration.
The optional message to log before each watch iteration.
- count
the current iteration
- returns
an optional log message.
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
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()
-
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( ... )