Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Tools for executing develop time Grails programatically (for build tools)
Java Groovy Shell
branch: master

This branch is 63 commits ahead, 1 commit behind jdpgrailsdev:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gradle
grails-launcher-ant
grails-launcher-testsuite
grails-launcher
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
ideaCodeStyle.xml
settings.gradle

README.md

grails-launcher

A thin jar with no dependencies for launching Grails (with an isolated classpath) programatically (e.g from Maven or Gradle) in the same JVM.

import org.grails.launcher.GrailsLauncher
import org.grails.launcher.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 launcher = new GrailsLauncher(classloader, null, "/a/grails/project")
launcher.launch("test-app", "integration some.package.*")
Something went wrong with that request. Please try again.