ework.profiles.base.2023.2.0-M1.source-code.console.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base Show documentation
Show all versions of base Show documentation
A Grace profile for other profiles to extend from.
The newest version!
description("Runs the Grace interactive console") {
usage "grace console"
flag name:'debug-jvm', description:"Starts the JVM in debug mode allowing attachment of a remote debugger"
flag name:'verbose', description:"Show more output from the build during startup"
}
def isIm = org.grails.cli.GrailsCli.isInteractiveModeActive()
def arguments = []
def con = getConsole()
if( !(flag('verbose') || con.verbose)) {
arguments << '--quiet'
}
arguments.addAll commandLine.remainingArgs
def g = isIm ? gradle.async : gradle
con.updateStatus "Running console..."
if(flag('debug-jvm')) {
g."console --debug-jvm"(*arguments)
}
else {
g."console"(*arguments)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy