Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v1.3.2
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.688 kB
/**
* @author Graeme Rocher
* @since 1.2.3
*/
includeTargets << grailsScript("_GrailsArgParsing")
target(default:"Removes a proxy configuration") {
depends(parseArguments)
if(!argsMap.params) {
println msg()
exit 1
}
else {
def settingsFile = grailsSettings.proxySettingsFile
config = grailsSettings.proxySettings
def name = argsMap.params[0]
config.remove(name)
settingsFile.withWriter { w ->
config.writeTo(w)
}
println "Removed proxy configuration [${name}]."
}
}
String msg() {
return '''\
Usage: grails remove-proxy [name]
Example: grails remove-proxy client
'''
}
Jump to Line
Something went wrong with that request. Please try again.