Created
October 31, 2013 02:19
-
-
Save skhatri/7243472 to your computer and use it in GitHub Desktop.
curl exec plugin task in gradle
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