You can use jelly's forEach tag [1], eg here is a snippet used in the m1
xdoc plugin:
<fileScanner var="xmlFiles">
<fileset dir="${maven.docs.src}">
<patternset>
<include name="**/*.xml"/>
<exclude name="**/${maven.xdoc.navigation.file}" />
</patternset>
</fileset>
</fileScanner>
<j:forEach var="file" items="${xmlFiles.iterator()}">
...
</j:forEach>
HTH,
-Lukas
[1] http://commons.apache.org/jelly/tags.html
Karr, David wrote:
I have a set of targets in an Ant script that I'm trying to integrate
into a goal in subproject maven.xml. One of the steps is to iterate
over a list of files found in a directory, using the Ant-contrib
"foreach" tag. This works fine in the Ant script, but when I do this in
my maven.xml file, when it executes the "foreach" tag, it seems to want
to find the specified target in a "build.xml" in the same directory.
I'm guessing Ant-contrib's Foreach tag wasn't built to allow for this
possibility. Is there a different way to do this that will work in
Maven 1?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]