You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Sonnek, Ryan" <Ry...@bpc.com> on 2003/12/17 18:02:56 UTC
jelly intro
I'm a new plugin developer looking for resources on jelly scripting. To be
exact, I'm looking for how to iterate through a list of folders and modify
files that match a certain pattern. any tutorials or examples you could
point me to? I've searched through the plugins I have installed, but
haven't found anything yet that matches this.
Thanks.
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: jelly intro
Posted by Jason van Zyl <jv...@maven.org>.
On Wed, 2003-12-17 at 12:02, Sonnek, Ryan wrote:
> I'm a new plugin developer looking for resources on jelly scripting. To be
> exact, I'm looking for how to iterate through a list of folders and modify
> files that match a certain pattern. any tutorials or examples you could
> point me to? I've searched through the plugins I have installed, but
> haven't found anything yet that matches this.
I would highly recommend you encapsulate your little tool in a POJO and
use the POJO from Jelly. So in Jelly you would end up with something
like:
<toolbox:fileChanger
directory="/my/dir"
filepattern="**/*.txt"
find="^monkey"
replace="donkey"/>
Then you can easily unit test it. Leverage your knowledge of Java, you
don't have to program in Jelly and I highly recommend you don't. Jelly
is an awesome integrator though and that's how you should use it. It's
dead simple to use a POJO from Jelly.
> Thanks.
> Ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org