I try to iterate over a directory of wsdl's. For the first I would be happy just to get an output of each file.
<target name="messages">
<foreach target="wsdlList" param="wsdlfile">
<path>
<fileset dir="${base.wsdl.src}">
<include name="*.wsdl" />
</fileset>
</path>
</foreach>
</target>
<target name="wsdlList">
<echo message="${wsdlfile}" />
</target>
The output I get is wsdlList: [echo] ${wsdlfile} instead of all wsdl files I expected.
Instead of using
<foreach>, use the newer<for>task. You need to point toantlib.xmland notantcontrib.propertiesin<taskdef>:Now, you can do this:
Note that this is
@{wsdl.file}and not${wsdl.file}. That's a parameter that can have a different value each time.