Switch private[sbt] status of Reload objects

The Reload exception that I added in the sbt package really wasn't
intended to be public. It's only meant to be used by
checkMetaBuildSources, which the users shouldn't override. I put it in
the top package though because I wanted it to be next to FullReload. I
also am not sure why the Reload object in Watch was private[sbt], but
while writing documentation, I realized that users couldn't access it.
This commit is contained in:
Ethan Atkins 2019-06-02 16:09:51 -07:00
parent 7948408368
commit 70899e5cad
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ final case class Reboot(
def arguments = argsList.toArray
}
case object Reload extends Exception(null, null, false, false)
private[sbt] case object Reload extends Exception(null, null, false, false)
final case class ApplicationID(
groupID: String,

View File

@ -246,7 +246,7 @@ object Watch {
* Action that indicates that the watch should pause while the build is reloaded. This is used to
* automatically reload the project when the build files (e.g. build.sbt) are changed.
*/
private[sbt] case object Reload extends CancelWatch
case object Reload extends CancelWatch
/**
* Action that indicates that we should exit and run the provided command.