Class LensNaming
java.lang.Object
com.arc_e_tect.gradle.trackerlens.lens.LensNaming
Derives a filesystem-safe CSS file name from a (possibly auto-namespaced) lens id, e.g.
"dark-lens (midnight-theme)" becomes "dark-lens-midnight-theme.css".
Used consistently wherever a resolved lens's id needs to become a file name - when
GenerateTrackerLensTask writes each lens's CSS file, and when the dashboard's
<link>/<option> markup references it - so the two always agree.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcssFileName(String lensId) Derives the CSS file name forlensId.
-
Method Details
-
cssFileName
Derives the CSS file name forlensId.- Parameters:
lensId- a resolved lens id- Returns:
- a filesystem-safe file name ending in
.css
-