Class BXCompiler

java.lang.Object
ortus.boxlang.compiler.BXCompiler

public class BXCompiler extends Object
I am a CLI tool for pre-compiling code to class files
  • Constructor Details

    • BXCompiler

      public BXCompiler()
  • Method Details

    • main

      public static void main(String[] args)
    • compileFile

      public static void compileFile(Path sourcePath, Path targetPath, Boolean stopOnError, BoxRuntime runtime, Path basePath, String mapping)
      Compiles a single file to the target path.
      Parameters:
      sourcePath - The path to the source file to compile.
      targetPath - The path where the compiled file should be written.
      stopOnError - If true, throws an exception on compilation errors; otherwise logs the error and continues.
      runtime - The BoxRuntime instance used for compilation.
      basePath - The base path used for resolving relative paths.
      mapping - The mapping name for the compiled file.