Class ThemeCompiler

java.lang.Object
atlantafx.base.theme.ThemeCompiler

public class ThemeCompiler extends Object
A lazy man CSS to BSS compiler wrapper.
  • Constructor Details

    • ThemeCompiler

      public ThemeCompiler()
  • Method Details

    • main

      public static void main(String[] args)
      The main class that accepts exactly one parameter, which is the path to the source directory to be scanned for CSS files.

      Usage:

      
       java ThemeCompiler <path>
       
      See Also:
    • convertToBinary

      public void convertToBinary(Path dir) throws IOException
      Converts all CSS files in the specified directory to BSS.
      Parameters:
      dir - The source directory to scan for CSS files.
      Throws:
      IOException - to punish you for using Java
    • convertToBinary

      public void convertToBinary(Path in, Path out) throws IOException
      Converts the specified CSS file to BSS. If no output file is given, then the input file name is used with an extension of 'bss'.
      Parameters:
      in - The input file path.
      out - The output file path.
      Throws:
      IOException - to punish you for using Java