maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Maves" <nathan.ma...@gmail.com>
Subject Re: Better solution then filtering?
Date Mon, 11 Jun 2007 15:34:32 GMT
Not sure how I over looked that but it should work great for what I am
doing.

Thanks Dirk

On 6/11/07, Dirk Olmes <dirk@xanthippe.ping.de> wrote:
>
> Nathan Maves wrote:
> > First off great product!
> >
> > I am using filtering for all of my property files that differ from
> multiple
> > environments (dev, uat, prod).  I am a little stuck on how to filter
> files
> > that differ dramatically from env to env.  One such file is a log4j
> > properties file.  We have very different files depending on env.  Is
> there
> > any way, without using ant, to copy these files to the target
> directories
> > based on which profile is used.
>
> One way would be to define profiles for your various environments. In
> each profile, configure the resources section. (A look at
> http://maven.apache.org/ref/current/maven-model/maven.html helps how to
> do that).
>
> Your project doesn't have a single resources dir then, but one for each
> profile (and one for resources that are the same on all profiles, maybe)
>
> -dirk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message