ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arcadius <...@git.apache.org>
Subject [GitHub] ant pull request #31: Feature/bugzilla bug 60628 ant get task to accept arbi...
Date Mon, 30 Jan 2017 22:30:01 GMT
Github user arcadius commented on a diff in the pull request:

    https://github.com/apache/ant/pull/31#discussion_r98557699
  
    --- Diff: src/main/org/apache/tools/ant/taskdefs/Get.java ---
    @@ -483,6 +489,35 @@ public void setTryGzipEncoding(boolean b) {
         }
     
         /**
    +     * Add a nested header
    +     * @param header to be added
    +     *
    +     */
    +    public void addConfiguredHeader(Header header) {
    +        if (header != null) {
    +            String key = trimToNull(header.getName());
    +            String value = trimToNull(header.getValue());
    +            if (key != null && value != null) {
    +                this.headers.put(key, value);
    +            }
    +        }
    +    }
    +
    +    private String trimToNull(String inputString) {
    --- End diff --
    
    moved this to StringUtils


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message