Class InfoFromSources

java.lang.Object
com.iizix.js.build.InfoFromSources

public class InfoFromSources extends Object
Class to extract build information from a HTML file used to launch an application. The information is JavaScript files and CSS files.
Author:
Christopher Mindus
  • Method Details

    • getInstance

      public static InfoFromSources getInstance()
      Gets the instance of the run support.
    • main

      public static void main(String[] args)
      Main routine.
    • getSources

      public void getSources(String fileName, List<String> jsList, List<String> dynamicJSList, List<String> cssList) throws IOException, ParseException
      Gets the JavaScript and CSS sources required for a HTML file.
      Parameters:
      fileName - File name of the HTML file.
      jsList - List of JavaScript sources filled in.
      dynamicJSList - List of JavaScript sources filled in.
      cssList - List of CSS sources filled in.
      Throws:
      IOException - When file read errors occurs.
      ParseException - For parsing errors in the file.
    • getSources

      public void getSources(String fileName, BufferedReader reader, List<String> jsList, List<String> dynamicJSList, List<String> cssList, Map<String,String> settings) throws IOException, ParseException
      Gets the JavaScript and CSS sources required for a HTML file.
      Parameters:
      fileName - The file name.
      reader - The reader of the HTML file.
      jsList - List of JavaScript sources filled in.
      dynamicJSList - List of JavaScript sources filled in.
      cssList - List of CSS sources filled in.
      settings - Settings to fill in from HTML file, null for none.
      Throws:
      IOException - When file read errors occurs.
      ParseException - For parsing errors in the file.