ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57072] ${user.home} doesn't work when reading properties from a file with prefix and prefixValues="true"
Date Thu, 20 Nov 2014 12:23:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57072

--- Comment #6 from Stefan Bodewig <bodewig@apache.org> ---
(In reply to lhersch from comment #3)
> Assuming that is not a bug, how can i solve the following issue.

You can't.  Not using the property task, at least.

The whole handling of prefixes in properties has been a source for several bugs
and we've had out share of backs and forths with incompatible changes while
trying to "fix" what isn't really fixable.  What you want to do is most likely
the opposite somebody else expects and we'd break this other person's build
file.

What you want to achieve can be done with loadproperties and an
expandproperties filter

  <loadproperties srcfile="build.properties" prefix="test" prefixValues="true">
    <filterchain>
      <expandproperties/>
    </filterchain>
  </loadproperties>

does what you want.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message