zoukankan      html  css  js  c++  java
  • 为gradle设置proxy

    官方文档:http://www.gradle.org/docs/current/userguide/build_environment.html

    以下配置写在gradle.properties中:

    //以下为http协议proxy配置
    systemProp.http.proxyHost=www.somehost.org //proxy主机
    systemProp.http.proxyPort=8080 //proxy端口
    systemProp.http.proxyUser=userid //proxy权限验证用户,没有就删掉该行
    systemProp.http.proxyPassword=password //proxy权限验证密码,没有就删掉
    systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost //不使用proxy的域名
    //以下为https协议proxy配置,参数作用同http协议
    systemProp.https.proxyHost=www.somehost.org
    systemProp.https.proxyPort=8080
    systemProp.https.proxyUser=userid
    systemProp.https.proxyPassword=password
    systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

    从文档中我们还得到了一些有用信息,这个配置其实就是对jvm环境变量进行设置,本质上是调用了System.setProperty('http.proxyHost', 'www.somehost.org')。。。。。

  • 相关阅读:
    浏览器返回按钮不会触发onLoad事件
    js常用方法
    清除浮动
    Hbuilder快捷键
    页面跳转
    castapp.js颜色配置
    mui学习
    css 特殊使用技巧
    mui框架如何实现页面间传值
    从0到千万级访问量网站架构演变史
  • 原文地址:https://www.cnblogs.com/moqi2013/p/4011870.html
Copyright © 2011-2022 走看看