On 1 Mar 07, at 5:41 AM 1 Mar 07, Dirk Olmes wrote:

On 28 Feb 07, at 8:21 AM 28 Feb 07, Rodrigo Ruiz wrote:

Hi everybody,

I need to generate text files from filtered resources, but I do not
want
them to be copied to the target/classes folder. The files are C header templates that I want to filter using some properties defined through
maven profiles.

Is there a way to do this apart from using the ant plugin?

You probably want to use something like Velocity which is real
templating solution. The archetype mechanism  uses it and so does the
remote resources plugin. You could lift one of those to create your
own velocity plugin which would be idea in my mind.

This reminds me ... would it be a good idea to have a generic velocity
plugin that allows to filter template files?

All the mojos reuse the Plexus velocity component, but putting a mojo wrapper around would probably be very useful.

Jason.

E.g. imagine a custom (shell)
script to execute the final artifact that needs the current version merged
in. (I know, there's other ways to do it but said script would be more
than what maven-appassembler-plugin would be able to generate).

-dirk

--
Anyway kids, have fun, play nicely, be good. And remember - if it ain't
broke, hit it again.


---------------------------------------------------------------------
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