Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (26 sloc) 0.97 kB
835947f @burtbeckwith cleanup
burtbeckwith authored
1 /*
2 * Copyright 2004-2005 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
e168c95 @graemerocher fix for GRAILS-6271 "Improve support for proxies, with multiple named…
graemerocher authored
16
17 /**
18 * @author Graeme Rocher
19 * @since 1.2.3
20 */
21
835947f @burtbeckwith cleanup
burtbeckwith authored
22 target(default: "Clears a proxy configuration") {
e168c95 @graemerocher fix for GRAILS-6271 "Improve support for proxies, with multiple named…
graemerocher authored
23 def settingsFile = grailsSettings.proxySettingsFile
24 config = grailsSettings.proxySettings
25 config.remove('currentProxy')
26
835947f @burtbeckwith cleanup
burtbeckwith authored
27 settingsFile.withWriter { w -> config.writeTo(w) }
e168c95 @graemerocher fix for GRAILS-6271 "Improve support for proxies, with multiple named…
graemerocher authored
28
e3fb07d @burtbeckwith renamed 'console' binding variable to 'grailsConsole' since it confli…
burtbeckwith authored
29 grailsConsole.updateStatus "Cleared proxy settings."
e168c95 @graemerocher fix for GRAILS-6271 "Improve support for proxies, with multiple named…
graemerocher authored
30 }
Something went wrong with that request. Please try again.