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]

Reply via email to