Class LensNaming

java.lang.Object
com.arc_e_tect.gradle.trackerlens.lens.LensNaming

public final class LensNaming extends Object
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 Details

    • cssFileName

      public static String cssFileName(String lensId)
      Derives the CSS file name for lensId.
      Parameters:
      lensId - a resolved lens id
      Returns:
      a filesystem-safe file name ending in .css