Lucee Ant Script Runner (super fast way to run Lucee for CI / tests)

You know how Lucee supports the jsr-223 script runner stuff?

Here’s a simple ant project to quickly run Lucee via the command line, awesome for CI stuff, adapted from the Lucee core build


I have the Lucee docs build process running using this via a GitHub Action, which saves around 50s from the command box install.

It’s caching all the required Maven packages which also speeds things up, it looks like GitHub is already caching the lucee.jar download locally

The main gotcha with this approach is that this (currently) runs the script without using Application.cfc, one alternative solution would be to use the hidden _internalRequest to run the template, which would use the Application.cfc

Here’s an example of the log output from a test job