ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Krishniyer <akris...@savvion.com>
Subject how to resolve a path from a XML file (XMLTask)
Date Thu, 18 Aug 2005 20:25:15 GMT
Hi
I am trying to read a path from an XML file.
For e.g here is an XML

<a>
    <b src="${myapp1.dir}/common/jsp" target="${myapp2.dir}/common/jsp"/ >
    <b src="${myapp3.dir}/common/jsp" target="${myapp4.dir}/common/jsp"/ >
</a>

And the section of the ant build file looks like this

    <loadproperties srcFile="c:/myappdir/conf/sbm.conf"/>

        <xmltask source="myXMLFile.xml">       
            <call path="a/b" target="package-Resources" 
inheritAll="true" inheritRefs="true">
                <param name="src" path="@src"/>             
            </call>
        </xmltask>

The values of the variables myapp1.dir, myapp2.dir, myapp3.dir, 
myapp4.dir are available in the sbm.conf file and are loaded correctly. 
When I read the src from the xml file, the full patch for ${src}doesn't 
get resolved. The ${src} remains as ${myapp1.dir}/common/jsp. How to 
resolve this a correct path?

Any help would be greatly appreciated.

Regards
Anand


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


Mime
View raw message