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
resourceName
fromloader
that are onclasspath
.Obtains the list of modules identified in all resource files
resourceName
fromloader
that are onclasspath
.classpath
andloader
are both required to ensure thatloader
doesn'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
resourceName
as per binaryModuleNames or available as analyzed source and extending from any ofsubclasses
as 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
data
and 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
true
ifurl
is an entry inclasspath
. -
def
sourceModuleNames(analysis: CompileAnalysis, subclasses: String*): Seq[String]
Discovers top-level modules in
analysis
that 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
names
indir / path
, one per line, unlessnames
is empty and then the file is deleted andNone
returned. -
def
writeDescriptors(names: DiscoveredNames, dir: File): Seq[File]
Writes discovered module
names
to zero or more files indir
as 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.