Thanks Vincent, but I already looked at the profiles, It looks great except that it seems that I would have to create one set of files for each different profiles...
What I would prefer, if we take the case of database connection is to have the one file I sent in my previous mail: [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ in the resources folder, and the properties would "overriden" by pom setting (in a profile) and user settings (in a profile) for each developer. It would be like intercepting the the copy of the file to the target and replacing properties with the one found in the active profile... Is there a way of doing that, or should I look about developing a new specific plugin ? SaM On 11/3/05, Vincent Siveton <[EMAIL PROTECTED]> wrote: > Hi Samuel, > > The Maven1 environment files (build.properties and project.properties) have > been replaced with a settings.xml file in Maven2. > > You could also define profiles to have customized builds. > http://maven.apache.org/guides/introduction/introduction-to-profiles.html > > Cheers, > > Vincent > > > -----Original Message----- > > From: Samuel Le Berrigaud [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 03, 2005 6:38 AM > > To: Maven Users List > > Subject: [m2] Updating *.properties files according to environment > > > > Hi, > > > > here is what I would like to do. I have some properties files for > > which values depends on the environement (development, test, live...) > > or per developer. > > > > Here is a basic example: > > > > [EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@ > > > > > > What I would like is that, according to the environment, the variables > > of these files could be populated with right value (may be stored in > > pom.xml or settins.xml), and as far as possible keep a constant > > directory structure... > > > > I have seen the "profile" managment that m2 provides, but it look like > > that for what I do, I would have to have different directories for the > > different environments (profiles)... > > > > Is that possible using m2 ? > > > > Please tell me if I'm not clear enough... > > > > Thank you, > > > > -- > > Samuel Le Berrigaud > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Samuel Le Berrigaud
