object PluginDiscovery
- Alphabetic
- By Inheritance
- PluginDiscovery
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
class
DiscoveredNames extends AnyRef
Names of top-level modules that subclass sbt plugin-related classes: AutoPlugin, and BuildDef.
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
binaryModuleNames(classpath: Seq[File], loader: ClassLoader, resourceName: String): Seq[String]
Obtains the list of modules identified in all resource files
resourceNamefromloaderthat are onclasspath.Obtains the list of modules identified in all resource files
resourceNamefromloaderthat are onclasspath.classpathandloaderare both required to ensure thatloaderdoesn't bring in any resources outside of the intendedclasspath, such as from parent loaders. -
def
binarySourceModuleNames(classpath: Seq[Attributed[File]], loader: ClassLoader, resourceName: String, subclasses: String*): Seq[String]
Discovers the names of top-level modules listed in resources named
resourceNameas per binaryModuleNames or available as analyzed source and extending from any ofsubclassesas per sourceModuleNames. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
discoverAll(data: PluginData, loader: ClassLoader): DetectedPlugins
Discovers and loads the sbt-plugin-related top-level modules from the classpath and source analysis in
dataand using the provided classloader. -
def
discoverSourceAll(analysis: CompileAnalysis): DiscoveredNames
Discovers the sbt-plugin-related top-level modules from the provided source
analysis. - def emptyDiscoveredNames: DiscoveredNames
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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()
-
def
onClasspath(classpath: Seq[File])(url: URL): Boolean
Returns
trueifurlis an entry inclasspath. -
def
sourceModuleNames(analysis: CompileAnalysis, subclasses: String*): Seq[String]
Discovers top-level modules in
analysisthat inherit from any ofsubclasses. -
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
- @throws( ... ) @native()
-
def
writeDescriptor(names: Seq[String], dir: File, path: String): Option[File]
Stores the module
namesindir / path, one per line, unlessnamesis empty and then the file is deleted andNonereturned. -
def
writeDescriptors(names: DiscoveredNames, dir: File): Seq[File]
Writes discovered module
namesto zero or more files indiras per writeDescriptor and returns the list of files written. -
object
Paths
Relative paths of resources that list top-level modules that are available.
Relative paths of resources that list top-level modules that are available. Normally, the classes for those modules will be in the same classpath entry as the resource.