V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xtorrent9527
V2EX  ›  问与答

windows 上 gradle 执行问题

  •  
  •   xtorrent9527 · 2017-09-05 15:54:07 +08:00 · 1311 次点击
    这是一个创建于 2424 天前的主题,其中的信息可能已经有所发展或是发生改变。
    new ByteArrayOutputStream().withStream { os ->
                    exec {
                        executable = 'curl'
                        args '-X', 'POST',
                                '-H', 'Content-Type: application/json',
                                '-d', "{\"type\":\"android\", \"bundle_id\":\"xxx\", \"api_token\":\"xxx\"}",
                                "http://api.fir.im/apps"
                        standardOutput = os
                    }
                    ext.binary = new JsonSlurper().parseText(os.toString())['cert']['binary']
                }
    

    代码是写在 gradle 里面的。

    这段代码在 mac 上返回是有响应的,但是 windows 上返回 errorr 404。

    实在想不通,请问各位大神有没有看出什么问题?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3314 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 12:23 · PVG 20:23 · LAX 05:23 · JFK 08:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.