ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46117] New: Append property prefix to entries in property file values
Date Wed, 29 Oct 2008 08:57:29 GMT

           Summary: Append property prefix to entries in property file
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks

This enhancement request is based on the use case of depending products and
re-using property files.

Picture a scenario in which you have product A and product B. Both have
property files ( and

[] A

[] B

Now let's say product B has a dependency on product A. It needs to consume
files that are placed in the publish directory of product A.

So we include the property file of product A and prefix it with "A". This means
we can have access to the product.publish.dir value using:

The problem is that ${A.product.publish.dir} uses the ${} and
${product.version}. So in the following scenario:

<property file="" />
<property file="" prefix="A" />

The value of ${A.product.publish.dir} is actually

c:\publish\Product B\1.0.1\

It would be nice if it is possible to also prefix all properties that are used
within the property file. This would make the use of the prefix attribute more

Of course there are workarounds to this situation:
A) have the prefix by design
B) copy and manipulate the property file using replace.

Therefore it should be considered as an enhancement.

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

View raw message