You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@apache.org> on 2005/11/21 15:34:54 UTC
XmlProperty and property expansion
Why doesnt <xmlProperty> expand inline properties?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: XmlProperty and property expansion
Posted by Ken Gentle <j....@acm.org>.
You're scaring me, Steve - I'm working on a complex build right now
that is heavily dependent on this behavior.
In a build file fragment:
<!-- Library Properties -->
<xmlproperty file="${lib.dir}/lib-properties.xml"
keepRoot="false"
collapseattributes="false"
semanticattributes="true"
/>
Then in ${lib.dir}/lib-properties.xml:
<libraries>
<!-- Core Dependencies (Logging, etc) - Tools need'em too! -->
<commons-logging>
<version value="1.0.3"/>
<dir location="${common.lib.dist.dir}"/>
<subdir value=""/>
<dist.dir location="${commons-logging.dir}/${commons-logging.subdir}"/>
<jar.name value="commons-logging-${commons-logging.version}.jar"/>
<jar location="${commons-logging.dist.dir}/${commons-logging.jar.name}"/>
<available classname="org.apache.commons.logging.Log"/>
</commons-logging>
<!-- More lib definitions... -- >
</libraries>
Works like a charm in 1.6.2. Note that "common.lib.dist.dir" is
externally defined (in yet another XML properties file with
environmental properties in it).
Did I misunderstand your question?
Ken
At 09:34 2005-11-21, you wrote:
>Why doesnt <xmlProperty> expand inline properties?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org