Class LensSetResolver
java.lang.Object
com.arc_e_tect.gradle.trackerlens.lens.LensSetResolver
Resolves the full merged lens set - this plugin's own bundled built-in lenses, every resolved
external
lensStyle pack (optionally restricted to one preferred pack), and the single
lensStylesheet lens when configured - exactly the same way regardless of which task asks
for it.
Shared by GenerateTrackerLensTask (which renders the resolved set into the dashboard)
and ListTrackerLensStylesTask (which only reports it) - both call this one method rather
than each re-implementing lens-source assembly, so the two can never drift apart on what "the
available lenses" means.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LensSetResolver
public LensSetResolver()Creates a newLensSetResolver.
-
-
Method Details
-
resolve
public List<ResolvedLens> resolve(File lensStylesheet, Iterable<File> lensStyleClasspath, String preferredLensPack) Resolves the full merged lens set.- Parameters:
lensStylesheet- optional single CSS file contributing thecustom-lenslens with the highest precedence for that id, ornulllensStyleClasspath- classpath entries (directories or jars) resolved from thelensStyleconfiguration; a non-existent entry is skippedpreferredLensPack- optionalgroup:artifactcoordinate restricting the external packs considered to the one whose derived label matches its artifact part; blank ornullconsiders every pack- Returns:
- the resolved, auto-namespaced lens set
-