ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28340] New: - Request Trim Attribute on Property Task
Date Sun, 11 Apr 2004 21:37:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28340

Request Trim Attribute on Property Task

           Summary: Request Trim Attribute on Property Task
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: erico@sedonacorp.com


For properties being loaded from a properties file, it would be very useful to 
have a trim attribute that would trim all whitespace from the property value 
(a simple Java 'String.trim()').

For instance, if you want to load "foo.properties" without potential trailing 
whitespace problems:

  <property resource="foo.properties" trim="true" />

If there were a property line "prop.a=dist    ":

  (a) With trim set to true, Ant would interpret this as "prop.a=dist" 
      without the spaces.  

  (b) With trim set to false, or missing, Ant would interpret this as 
      it currently does as "prop.a=dist    ".

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


Mime
View raw message