xtorrent9527
V2EX  ›  问与答

windows 上 gradle 执行问题

  •  
  •   xtorrent9527 · Sep 5, 2017 · 2234 views
    This topic created in 3204 days ago, the information mentioned may be changed or developed.
    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。

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6111 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:55 · PVG 10:55 · LAX 19:55 · JFK 22:55
    ♥ Do have faith in what you're doing.