Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tools for executing develop time Grails programatically (for build tools)
Java Groovy
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gradle/wrapper
grails-exec-ant
grails-exec-testsuite
grails-exec
.gitignore
README.md
build.gradle
settings.gradle

README.md

grails-exec

A thin jar with no dependencies for executing Grails (with an isolated classpath) programatically (e.g from Maven or Gradle).

import grails.exec.Executor
import grails.exec.RootLoader

// Setup the classpath for Grails
def classpath = []

grailsJars.each { path ->
    classpath << new URL(path)
}

// Create a root class loader
def classloader = new RootLoader(classpath)

def executor = new GrailsExecutor(classloader, null, "/a/grails/project")
executor.execute("test-app", "integration some.package.*", "-Dsome.system.property=true")
Something went wrong with that request. Please try again.