On Thu, 25 Aug 2005, Thomas Van de Velde wrote: > I am wondering if M2 could have something like: > > <filtering> > <filterTokens> > <token>value</token> > </filterTokens> > <filterFiles> > <filterFile env="foodev">foo.properties</filterFile> > <filterFile>bar.properties</filterFile> > </filterFiles> > </filtering> > > Filters are applied in the order they are defined in the pom. Fileterfile > foo.properties is only loaded when -Denv=foodev is passed. bar.properties is > always loaded and overridden with what's define in the user's home > build.properties.
Something like that, yes. But if we would use this approach, we would get 'conditional tags' scattered all over the pom in a while, and coherence is lost. After all, you would specify -Denv=foodev solely for the resources plugin. Other plugins could ofcourse use this property, but then you'd specify it multiple times in the pom, losing coherence. It's better to use a profile, so more plugins could benefit from this 'environment setting'. And the best thing is, it's already functional ;) -- Kenney > > On 8/25/05, Brett Porter <[EMAIL PROTECTED]> wrote: > > > > > > >Yes, I know - but I'm not sure how to add a nested structure to it, but > > >perhaps I can figure it out somehow... > > > > > >But before I start working on a patch, I would like to know if there is > > >general interest in it. I don't want to work for the trashcan :) > > > > > > > > I think we're all interested, but I'd like to see the POM tags restated > > to be sure we know where it is going. I lost it a bit in the thread. > > > > - Brett > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Cheers, > Thomas > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]