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)
- Host: GitHub
- URL: https://github.com/grails/grails-launcher
- Owner: grails
- Archived: true
- Fork: true (jdpgrailsdev/grails-exec)
- Created: 2011-06-02T10:03:45.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2014-01-21T14:18:59.000Z (over 12 years ago)
- Last Synced: 2025-10-20T04:43:38.096Z (8 months ago)
- Language: Java
- Homepage:
- Size: 442 KB
- Stars: 6
- Watchers: 11
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.*")