You will simply need to write a plugin.

Wayne

On 2/15/08, Ryan H. <[EMAIL PROTECTED]> wrote:
> Okay, here is an example of a legacy maven1 goal. You can see how easily it
> can be done in the "iteration" language feature provided by jelly script.
> I'm scratching my head as to how the same can be done in maven2 (easily)
> without writing a plug-in or changing the perl script that is invoked
> against each file.
>
>
>
> <goal name="foo_goal" >
>
> <fileScanner var="testFiles">
>
> <fileset dir="${pom.build.unitTestSourceDirectory}"
>
> includes="**/*Test.java"/>
>
> </fileScanner>
>
> <j:forEach var="file" items="${testFiles.iterator()}" trim="yes">
>
> <echo message="running TestCase: ${file}"/>
>
> <exec executable="perl">
>
> <arg value="${maven.test.dest}/bin/mytest.pl"/>
>
> <arg value="${file}"/>
>
> <arg value="${maven.test.dest}/"/>
>
> </exec>
>
> </j:forEach>
>
> </goal>
>
> On 2/14/08, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> > Please describe what you're trying to do and why, and perhaps someone
> > can help you figure out a way to do it using features that Maven does
> > support.
> >
> > Wayne
> >
> > On Thu, Feb 14, 2008 at 6:41 PM, Ryan H. <[EMAIL PROTECTED]> wrote:
> > > Why does maven2 not provide "iteration" or "foreach" language feature?
> > >
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to