You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by To...@aici.com on 2000/09/12 17:42:48 UTC

Re: Property.java

Here is the method in Property.java I download from Revision 1.14,
I wonder if the last line should be:
addProperty(name, v);
If in the property file I have variables, they will be ignored. And the
String v is useless.

  private void addProperties(Properties props) {
        resolveAllProperties(props);
        Enumeration e = props.keys();
        while (e.hasMoreElements()) {
            String name = (String) e.nextElement();
            String value = (String) props.getProperty(name);
            String v = ProjectHelper.replaceProperties(value,
project.getProperties());
            addProperty(name, value);
        }
    }

Tony


CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information.  Any unauthorized review, use, disclosure or
distribution is prohibited.  If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.