An open API service indexing awesome lists of open source software.

https://github.com/grails/grails-launcher

Tools for executing develop time Grails programatically (for build tools)
https://github.com/grails/grails-launcher

Last synced: 5 months ago
JSON representation

Tools for executing develop time Grails programatically (for build tools)

Awesome Lists containing this project

README

          

## 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.*")