All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ework.profiles.base.2023.1.0-M2.source-code.console.groovy Maven / Gradle / Ivy

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