Class SimpleRenderer

java.lang.Object
org.variantsync.diffdetective.internal.SimpleRenderer

public class SimpleRenderer extends Object
NOT INTENDED FOR API USE. Renderer that may be invoked directly on a directory containing diff and linegraph files. The renderer will render all valid files in the given directory. This class is mostly used for debuggin purposes within DiffDetective and contains mostly quick-and-dirty hardcoded configuration options.
Author:
Paul Bittner
  • Field Details

  • Constructor Details

    • SimpleRenderer

      public SimpleRenderer()
  • Method Details

    • render

      private static void render(Path fileToRender)
    • main

      public static void main(String[] args) throws IOException
      Expects one of the following argument configurations. 1.) For rendering files: Exactly one argument pointing to a file or directory to render. 2.) For rendering patches: Exactly three arguments. The first argument is the path to a local directory from which a patch should be analyzed. The second argument is a commit hash. The third argument is the file name of the patched file in the given commit.
      Parameters:
      args - See above
      Throws:
      IOException - when reading a file fails.