You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gilles Dodinet <rh...@free.fr> on 2004/03/23 00:49:36 UTC
Re: [jelly] howto loop against files in some dir ?
nicolas,
i think something like that should work :
<ant:fileScanner var="solexSessions">
<ant:fileset dir="${solex.sessions.dir}" includes="*.*"/>
</ant:fileScanner>
<j:forEach var="solexSession" items="${solexSessions.iterator()}">
<!-- run solex session -->
</j:forEach>
hope this helps
-- gd
nicolas De Loof wrote:
>>> Hello,
>>>
>>> I'm trying to write a maven plugin for the solex webapp test tool.
>>> (http://solex.sourceforge.net/)
>>>
>>> Solex 0.5 defines a ant task to run a solex session. I'm able to use
>>> it and run a session from a simple maven plugin. I'd like to run it
>>> for all session files found in src/test-solex (something like is
>>> done for cactus and junit tests).
>>>
>>> I don't know how to use ant or jelly tags to build a "foreach" from
>>> a fileset or anything else.
>>>
>>> Can someone help me about that ?
>>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [jelly] howto loop against files in some dir ?
Posted by nicolas De Loof <ni...@cgey.com>.
Thank you for help !
To solve this, I have extended the solex ant tag to accept a fileset.
This way, I can build a XML repport with all sessions merged.
Nico.
Gilles Dodinet a écrit :
> nicolas,
>
> i think something like that should work :
>
> <ant:fileScanner var="solexSessions">
> <ant:fileset dir="${solex.sessions.dir}" includes="*.*"/>
> </ant:fileScanner>
>
> <j:forEach var="solexSession" items="${solexSessions.iterator()}">
> <!-- run solex session -->
> </j:forEach>
>
>
> hope this helps
>
> -- gd
>
> nicolas De Loof wrote:
>
>>>> Hello,
>>>>
>>>> I'm trying to write a maven plugin for the solex webapp test tool.
>>>> (http://solex.sourceforge.net/)
>>>>
>>>> Solex 0.5 defines a ant task to run a solex session. I'm able to
>>>> use it and run a session from a simple maven plugin. I'd like to
>>>> run it for all session files found in src/test-solex (something
>>>> like is done for cactus and junit tests).
>>>>
>>>> I don't know how to use ant or jelly tags to build a "foreach" from
>>>> a fileset or anything else.
>>>>
>>>> Can someone help me about that ?
>>>>
>>>
>>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org