maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphaël Piéroni" <raphaelpier...@gmail.com>
Subject attaching some behaviour to archetypes
Date Mon, 07 May 2007 22:15:57 GMT
Hi,

Last week, i talk with Nicolas de Loof
who tells me about an archetype feature
he need:
modify (read merge) the generated web.xml
file from a webapp archetype (when using
that archetype in a partial creation (read
using an archetype in an existing project to
enhance its features).

I wonder if hooking the behaviour in a way like
this is a correct feature:
<fileset>
  <directory>src/webapp</directory>
  <behaviour>ClassName</behaviour>
  <includes>...</includes>
</fileset>

with ClassName the FQN of a class located
in the archetype's artifact.

Some other tough i have is to have a groovy
script instead of the class.
Both the class or the script is called with the
java.io.File object for each generated file from
the fileset.

WDYT?

Raphaël
Mime
View raw message