Package ortus.boxlang.compiler
Class BXCompiler
java.lang.Object
ortus.boxlang.compiler.BXCompiler
I am a CLI tool for pre-compiling code to class files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcompileFile(Path sourcePath, Path targetPath, Boolean stopOnError, BoxRuntime runtime, Path basePath, String mapping) Compiles a single file to the target path.static void
-
Constructor Details
-
BXCompiler
public BXCompiler()
-
-
Method Details
-
main
-
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.
-