Interface Compile.Compiler

  • Enclosing class:
    Compile

    public static interface Compile.Compiler
    An interface that provides basic access to a Java source compiler. Output from the compiler will be displayed in the script output window.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean compile​(java.io.File sourceFileBasePath, java.io.File... sourceFiles)
      Compiles a collection of Java source files by invoking a local source compiler.
    • Method Detail

      • compile

        boolean compile​(java.io.File sourceFileBasePath,
                        java.io.File... sourceFiles)
        Compiles a collection of Java source files by invoking a local source compiler. The compiler will include the main Strange Eons application classes in the class path for the source files to compile against. The files are compiled in place, so that the output for each file will located in the same directory as the source.
        Parameters:
        sourceFileBasePath - the base directory that contains the source files (i.e., the folder that contains the default package of the source tree)
        sourceFiles - one or more source files located in the base path that should be compiled
        Returns:
        true if compilation was successful