V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xtorrent9527
V2EX  ›  问与答

windows 上 gradle 执行问题

  •  
  •   xtorrent9527 · Sep 5, 2017 · 2172 views
    This topic created in 3166 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   ·   4173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.