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 11585] - The Replace Task ignores properties with multiline replacements
Date Fri, 24 Oct 2003 15:21:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11585>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11585

The Replace Task ignores properties with multiline replacements





------- Additional Comments From peter.reilly@corvil.com  2003-10-24 15:21 -------
a couple of points.
* We may as well make Andre's change anyway if we are going to support
  replace properties for the replace inner task

* I am not too sure it is a good idea to provide the new introspection
  method. It may be better to get always do the replace properties
  before addText(String) is called. An "ugly" solution to allow
  thirdparty tasks to work for both ant 1.7 and before could be
  to provide a "ant.addtext.replaceproperties" property.
  
  void addText(String x) {
    if (getProject().getProperty("ant.addtext.replaceproperties") == null) {
        x = getProject().replaceProperties(x);
    }
    ...
  }

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


Mime
View raw message