mirror of https://github.com/sbt/sbt.git
Add sbt.nio.Watch to default imports
I realized writing documentation that it is a pain to not have Watch available in build.sbt with an import.
This commit is contained in:
parent
4f66b81e03
commit
3c81226ba9
|
|
@ -71,6 +71,7 @@ trait Import {
|
||||||
type RelativeGlob = sbt.nio.file.RelativeGlob
|
type RelativeGlob = sbt.nio.file.RelativeGlob
|
||||||
val RelativeGlob = sbt.nio.file.RelativeGlob
|
val RelativeGlob = sbt.nio.file.RelativeGlob
|
||||||
val RecursiveGlob = sbt.nio.file.RecursiveGlob
|
val RecursiveGlob = sbt.nio.file.RecursiveGlob
|
||||||
|
val Watch = sbt.nio.Watch
|
||||||
|
|
||||||
// sbt.util
|
// sbt.util
|
||||||
type AbstractLogger = sbt.util.AbstractLogger
|
type AbstractLogger = sbt.util.AbstractLogger
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ package input.aggregation
|
||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
import sbt.Keys._
|
import sbt.Keys._
|
||||||
import sbt.internal.DynamicInput
|
import sbt.internal.DynamicInput
|
||||||
import sbt.nio.{ file => _, _ }
|
|
||||||
import sbt.nio.Keys._
|
import sbt.nio.Keys._
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import complete.Parser._
|
||||||
|
|
||||||
import java.io.{ PipedInputStream, PipedOutputStream }
|
import java.io.{ PipedInputStream, PipedOutputStream }
|
||||||
import Keys._
|
import Keys._
|
||||||
import sbt.nio.Watch
|
|
||||||
import sbt.nio.Keys._
|
import sbt.nio.Keys._
|
||||||
|
|
||||||
object Build {
|
object Build {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import sbt.legacy.sources.Build._
|
import sbt.legacy.sources.Build._
|
||||||
import sbt.nio.Watch
|
|
||||||
|
|
||||||
Global / watchSources += new sbt.internal.io.Source(baseDirectory.value, "global.txt", NothingFilter, false)
|
Global / watchSources += new sbt.internal.io.Source(baseDirectory.value, "global.txt", NothingFilter, false)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
|
|
||||||
import sbt.nio.Watch
|
|
||||||
|
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
|
|
||||||
Compile / sourceGenerators += Def.task {
|
Compile / sourceGenerators += Def.task {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
import java.nio.file._
|
import java.nio.file._
|
||||||
import java.nio.file.attribute.FileTime
|
import java.nio.file.attribute.FileTime
|
||||||
|
|
||||||
import sbt.nio.Keys._
|
|
||||||
import sbt.nio._
|
|
||||||
|
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
|
|
||||||
watchTriggeredMessage := { (i, path: Path, c) =>
|
watchTriggeredMessage := { (i, path: Path, c) =>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
import java.nio.file.attribute.FileTime
|
import java.nio.file.attribute.FileTime
|
||||||
|
|
||||||
import sbt.nio.Watch
|
|
||||||
|
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
|
|
||||||
val foo = taskKey[Unit]("foo.txt")
|
val foo = taskKey[Unit]("foo.txt")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue