On Feb 21, 2005, at 11:55 AM, Damien Raude-Morvan wrote:

In this case, it's read properties from a file in config/dev.properties. With some tweaks (jelly tags), you should achieve to rename the file after copy. But IMHO, it's simplier to have "templates/" and "filtered/" directory than templates and filtered files in same dir.


Damien,

Thanks. It's this last part that I'm unclear about. I can see how to do this with a hack, but I'd rather do it the "right" way. Ideally I'd like to have the templates not included in the final war, just the filtered and renamed files. So I guess what I'm looking for is a hook into the filtering mechanism, perhaps as a preGoal before it does the copy.

It seems to me like either there is a good deal of documentation missing on this or it would be better for filtering to be extracted out into a plugin instead of having it as a "core" feature of maven.

I guess what I might be missing is this: what is the input to the <preGoal name=jar:jar-resources">? Is there an object that we can grab and work with? I'd assume there's a list of files being passed around somewhere.

Rick



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to