best way to choose between development/production files

2006-04-17 Thread Janos Mucsi
Hi Some resource files are different in development, so I want to overwrite the production files when building for dev. src main java conf development production What is the smartest way to overlay some files? Using an

best way to choose between development/production files

2006-04-18 Thread Janos Mucsi
Ray Thanks, I start to understand profiles. However, I would like to see how you would use a property that a profile sets to copy additional resources. Any sample pom.xml? Let's say my directory structure is like this: src main java resources devresources test .. I w

Re: best way to choose between development/production files

2006-04-17 Thread Ray Tsang
sound like you should use profiles or resource filters http://maven.apache.org/guides/introduction/introduction-to-profiles.html http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? ray, On 4/18/06, Janos Mucsi <[EMAIL PROTECTED]> wrote: > Hi > So

Re: best way to choose between development/production files

2006-04-18 Thread Wayne Fay
Hi Janos, I believe the proper "Maven2 way" of doing this would be with a single set of files for all deployment environments with variable substitution using values derived from profiles. Then you issue "mvn package -P dev" and it uses the values from profile "dev" when filtering the property fi