Fork me on GitHub

Command line usage

This example shows how to run a beanshell file from the command line.

mvn com.github.genthaler:beanshell-maven-plugin:1.4:run -Dbsh.file="touch.bsh"

where the contents of the script file might be:

org.codehaus.plexus.util.FileUtils.fileWrite( "touched.txt", "This is a Beanshell test" );