I don't know the main idea was to be able to make differnet build, with
differnet conf file.
I am sure that a lot of person can use there projet in various environement an
then need various conf files.
I will probably juste overwite the file with a post goal.
PS : the more I look around the more I fill this is a jelly question.
since I need to acces
${pom.build.resources} :
[[dir = /home/sabourdin/Documents/projet/exemplebean/src/conf/default]]
Le mercredi 24 Novembre 2004 23:09, Brett Porter a �crit :
> No, it won't ever work. The project is loaded before maven.xml, and
> all the values evaluated.
>
> Don't you think you are making this build overly complicated?
>
> - Brett
>
>
> On Wed, 24 Nov 2004 18:24:57 +0100, Charles-Alexandre Sabourdin
>
> <[EMAIL PROTECTED]> wrote:
> > i is not working, it seem that the variable is not event modifiy :(
> >
> > Le mercredi 24 Novembre 2004 17:20, Steve Molloy a �crit :
> > > Try adding scope="parent" to your j:set.
> > >
> > > Steve Molloy
> > >
> > > -----Original Message-----
> > > From: Charles-Alexandre Sabourdin [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, November 24, 2004 10:56 AM
> > > To: Maven Users List
> > > Subject: Re: Dynamically modifing the ressources
> > >
> > > it it not woking correctly.
> > > What I am tried was to set in
> > > project.xml
> > > <directory>src/conf${configDir}</directory>
> > > in project.properties
> > > configDir=/default
> > > and in my maven.xml I creat the following goal :
> > >
> > > <goal name="exemplebean:jar" description="set configuration file A">
> > > <j:set var="configDir" value="/configA"/>
> > > <echo> set configuration directory : ${configDir}</echo>
> > > <attainGoal name="echo-value"/>
> > > <attainGoal name="jar:jar"/>
> > > </goal>
> > >
> > > unfortunatly it does not works.
> > >
> > > Le mardi 23 Novembre 2004 20:30, Brett Porter a �crit :
> > > > in the resources, set it to something like:
> > > >
> > > > src/conf/project${foo}, then set foo to A or B.
> > > >
> > > > - Brett
> > > >
> > > >
> > > > On Tue, 23 Nov 2004 12:47:55 +0100, Charles-Alexandre Sabourdin
> > > >
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > > I feel that this must have been discuss somewhere but I could not
> > > > > figure it out.
> > > > > The basic idea is to have 2 directory /src/conf/projetA
> > > > > /src/conf/projetB. I would like to set maven goals to use a
> > > > > specific directory.
> > > > > I llok aroud and found :
> > > > > [echo] $ {pom.build.resources}:
> > > > > [[dir =
> > > > > /home/sabourdin/Documents/projet/exemplebean/src/conf/projetA]] but
> > > > > I did not find how to modify this propertie :(
> > > > >
> > > > > --
> > > > > Charles-Alexandre
> > > > > SABOURDIN
> > > > > -----------------
> > > > >
> > > > > -------------------------------------------------------------------
> > > > >-- To unsubscribe, e-mail: [EMAIL PROTECTED] For
> > > > > additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Charles-Alexandre
> > SABOURDIN
> > -----------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Charles-Alexandre
SABOURDIN
-----------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]