Created
November 29, 2018 10:29
-
-
Save robertoschwald/fbb928968dee7a24573cd648087dce53 to your computer and use it in GitHub Desktop.
Run Grails 3.x with XRebel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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