Skip to content

Instantly share code, notes, and snippets.

@robertoschwald
Created November 29, 2018 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertoschwald/fbb928968dee7a24573cd648087dce53 to your computer and use it in GitHub Desktop.
Save robertoschwald/fbb928968dee7a24573cd648087dce53 to your computer and use it in GitHub Desktop.
Run Grails 3.x with XRebel
// To use XRebel in Grails 3.3.x, add to build.gradle bootRun block.
// Then you are able to conditionally enable XRebel by specifying "-Dxrebel=<path_to_xrebel>"
if (System.getProperty('xrebel')){
if (new File(System.getProperty('xrebel')).exists()){
jvmArgs "-javaagent:${System.getProperty('xrebel')}"
} else {
println "XRebel file ${System.getProperty('xrebel')} not found. Ignoring"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment