-
-
Save lifuzu/11057638 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.gradle.api.tasks.Exec | |
| class Curl extends Exec { | |
| private String curlExecutable = "curl" | |
| String curlArgs = "" | |
| public Curl() { | |
| this.setExecutable(curlExecutable) | |
| } | |
| public void setArguments(String curlArguments) { | |
| this.args = "$curlArguments"?.trim().split(' ') as List | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment