Re: overwriting external resources

2008-03-20 Thread Dominik Heller
Hey David,
so I have tried to reproduce your test scenario but for some reason I still 
have the same problem. In the following is the code of pom.xml:

folder structure:
files to copy:::
src/main/Customer/web.xml
src/main/Customer/WEB-INF/config/cd.xml
src/main/Customer/WEB-INF/config/config.properties

files to overwrite:::
src/main/webapp/WEB-INF/config/cd.xml
src/main/webapp/WEB-INF/config/config.properties


  customer1 
  
Customer
src/main/Customer/web.xml
  


  
maven-war-plugin
2.0.2

  ${webXML}
  src/main/webapp
  
  

  src/main/${config.setPath}

  
  
 
  

Well right now I can't see any remarkable difference between your code and 
mine, have you tried out what happens if you don't use the 
webapp and especially if it still 
works correct if you have two files in your default WEB-INF but you only want 
to overwrite one of the files?
thx in advance

 Original-Nachricht 
> Datum: Thu, 20 Mar 2008 08:35:38 +0100
> Von: David Delbecq <[EMAIL PROTECTED]>
> An: Maven Users List 
> Betreff: Re: overwriting external resources

> En l'instant précis du 19/03/08 10:10, Dominik Heller s'exprimait en ces 
> termes:
> > Hello there,
> > well it seems that i was a little bit to fast to announce my success. So
> the thing is, when a file X in the WEB-INF/config folder has been changed
> more recently then the file I want to overwrite the file X with then it
> just won't do it. The reason why I thought it would work is because my pom is
> located in tzhe very top folder of the project and so by using
> webapp a new folder would be 
> created. Any idea
> someone how to force maven to overwrite the files???
> > thx in advance.
> >
> Tested here:
> 
> webapp/WEB-INF/Domain.xml , date of 20-03-2008
> configSet/user/WEB-INF/Domain.xml, date of 04-03-2008
> 
> pom.xml:
> 
>   
> maven-war-plugin
> 
>   webapp
>   
> 
>   
>   configSets/${config.configSet}
> 
>   
> 
>   
>   
>   
> 
> build-user
> 
>   
> type
> user
>   
>  
>   
> user
> 
>   
> 
>   
> 
> Result after mvn clean package:
> ls -l target/intranet-1.0-SNAPSHOT/WEB-INF/Domain.xml
> -rw-r--r-- 1 delbd delbd 36757 2008-03-04 10:38 
> target/intranet-1.0-SNAPSHOT/WEB-INF/Domain.xml
> The correctly the "old" configSet file that override the more recent 
> general file.
> 
> -- 
> David Delbecq
> Institut Royal Météorologique
> Ext:557
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: overwriting external resources

2008-03-20 Thread David Delbecq
En l'instant précis du 19/03/08 10:10, Dominik Heller s'exprimait en ces 
termes:

Hello there,
well it seems that i was a little bit to fast to announce my success. So the thing is, when 
a file X in the WEB-INF/config folder has been changed more recently then the file I want 
to overwrite the file X with then it just won't do it. The reason why I thought it would 
work is because my pom is located in tzhe very top folder of the project and so by using 
webapp a new folder would be created. 
Any idea someone how to force maven to overwrite the files???
thx in advance.


Tested here:

webapp/WEB-INF/Domain.xml , date of 20-03-2008
configSet/user/WEB-INF/Domain.xml, date of 04-03-2008

pom.xml:

 
   maven-war-plugin
   
 webapp
 
   
 
 configSets/${config.configSet}
   
 
   
 
 
 
   
   build-user
   
 
   type
   user
 

 

   user
   
 
   
 

Result after mvn clean package:
ls -l target/intranet-1.0-SNAPSHOT/WEB-INF/Domain.xml
-rw-r--r-- 1 delbd delbd 36757 2008-03-04 10:38 
target/intranet-1.0-SNAPSHOT/WEB-INF/Domain.xml
The correctly the "old" configSet file that override the more recent 
general file.


--
David Delbecq
Institut Royal Météorologique
Ext:557


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: overwriting external resources

2008-03-19 Thread Dominik Heller
Hello there,
well it seems that i was a little bit to fast to announce my success. So the 
thing is, when a file X in the WEB-INF/config folder has been changed more 
recently then the file I want to overwrite the file X with then it just won't 
do it. The reason why I thought it would work is because my pom is located in 
tzhe very top folder of the project and so by using 
webapp a new folder would be created. 
Any idea someone how to force maven to overwrite the files???
thx in advance.

 Original-Nachricht 
> Datum: Tue, 18 Mar 2008 14:40:43 +0100
> Von: "Dominik Heller" <[EMAIL PROTECTED]>
> An: "Maven Users List" 
> Betreff: Re: overwriting external resources

> Hi David,
> well first of all thanks so much for yours quick response. I have tried
> your code and it works fine for me. it seems that the
> webapp is dealing with the 
> timestamps of the files
> correctly although I thought that the webapp would be the default
> webSourceDirectory. If the webSourceDirectory is not explicitly specified the 
> file in the
> config folder of the WEb-Inf folder won't be overwriten if it has a newer
> timestamp than the file it should be overwritten with. Anyways thanks for
> your help I really appreciate it.
> 
>  Original-Nachricht 
> > Datum: Tue, 18 Mar 2008 13:53:47 +0100
> > Von: David Delbecq <[EMAIL PROTECTED]>
> > An: Maven Users List 
> > Betreff: Re: overwriting external resources
> 
> > En l'instant précis du 18/03/08 12:43, Dominik Heller s'exprimait en
> ces 
> > termes:
> > > Hi i am pretty new to maven and encountered a problem by overwriting
> > some external resources. I am using maven 2.0.7 and the maven-war-plugin
> > 2.0.2. What I want to do is to overwrite a folder config in the WEB-INF
> > containing some files with an other folder config which is stored in an
> external
> > resource folder until I build the project.
> > > In the end it looks pretty much like this:
> > >
> > > -src/main/
> > >-Customer/config
> > >  -web.xml
> > >  -config.xml
> > >  -...
> > >-webapp/WEB-INF
> > >  -config/...
> > >  -web.xml
> > >
> > > when building the project i want to use profiles to replace the
> web.xml
> > and the config foilder in the WEB-INF. For replacing the web.xml I am
> using
> > the  property but so far I didn't find a way to overwrite the
> > config folder in the WEB-INF.
> > > Any ideas someone??
> > >
> > > thx in advance
> > >   
> > Hi, we had similar requirement here. Here is our solution:
> > 
> > in build plugins:
> > 
> > 
> >   
> > maven-war-plugin
> > 
> >   webapp
> >   
> > 
> >   
> >   configSets/${config.configSet}
> > 
> >   
> > 
> >   
> > 
> > in profiles:
> > 
> > 
> > user-x
> > 
> >   
> > user
> > x
> >   
> >  
> >   
> > userX
> >   
> > 
> > 
> > We make our package using
> > 
> > mvn package -Duser=x
> > 
> > and it will override, in war, existing files with those found in 
> > configSets/userX/
> > 
> > 
> > -- 
> > David Delbecq
> > Institut Royal Météorologique
> > Ext:557
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Pt! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: overwriting external resources

2008-03-18 Thread Dominik Heller
Hi David,
well first of all thanks so much for yours quick response. I have tried your 
code and it works fine for me. it seems that the 
webapp is dealing with the timestamps 
of the files correctly although I thought that the webapp would be the default 
webSourceDirectory. If the webSourceDirectory is not explicitly specified the 
file in the config folder of the WEb-Inf folder won't be overwriten if it has a 
newer timestamp than the file it should be overwritten with. Anyways thanks for 
your help I really appreciate it.

 Original-Nachricht 
> Datum: Tue, 18 Mar 2008 13:53:47 +0100
> Von: David Delbecq <[EMAIL PROTECTED]>
> An: Maven Users List 
> Betreff: Re: overwriting external resources

> En l'instant précis du 18/03/08 12:43, Dominik Heller s'exprimait en ces 
> termes:
> > Hi i am pretty new to maven and encountered a problem by overwriting
> some external resources. I am using maven 2.0.7 and the maven-war-plugin
> 2.0.2. What I want to do is to overwrite a folder config in the WEB-INF
> containing some files with an other folder config which is stored in an 
> external
> resource folder until I build the project.
> > In the end it looks pretty much like this:
> >
> > -src/main/
> >-Customer/config
> >  -web.xml
> >  -config.xml
> >  -...
> >-webapp/WEB-INF
> >  -config/...
> >  -web.xml
> >
> > when building the project i want to use profiles to replace the web.xml
> and the config foilder in the WEB-INF. For replacing the web.xml I am using
> the  property but so far I didn't find a way to overwrite the
> config folder in the WEB-INF.
> > Any ideas someone??
> >
> > thx in advance
> >   
> Hi, we had similar requirement here. Here is our solution:
> 
> in build plugins:
> 
> 
>   
> maven-war-plugin
> 
>   webapp
>   
> 
>   
>   configSets/${config.configSet}
> 
>   
> 
>   
> 
> in profiles:
> 
> 
> user-x
> 
>   
> user
> x
>   
>  
>   
> userX
>   
> 
> 
> We make our package using
> 
> mvn package -Duser=x
> 
> and it will override, in war, existing files with those found in 
> configSets/userX/
> 
> 
> -- 
> David Delbecq
> Institut Royal Météorologique
> Ext:557
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: overwriting external resources

2008-03-18 Thread David Delbecq
En l'instant précis du 18/03/08 12:43, Dominik Heller s'exprimait en ces 
termes:

Hi i am pretty new to maven and encountered a problem by overwriting some 
external resources. I am using maven 2.0.7 and the maven-war-plugin 2.0.2. What 
I want to do is to overwrite a folder config in the WEB-INF containing some 
files with an other folder config which is stored in an external resource 
folder until I build the project.
In the end it looks pretty much like this:

-src/main/
   -Customer/config
 -web.xml
 -config.xml
 -...
   -webapp/WEB-INF
 -config/...
 -web.xml

when building the project i want to use profiles to replace the web.xml and the 
config foilder in the WEB-INF. For replacing the web.xml I am using the 
 property but so far I didn't find a way to overwrite the config folder 
in the WEB-INF.
Any ideas someone??

thx in advance
  

Hi, we had similar requirement here. Here is our solution:

in build plugins:


 
   maven-war-plugin
   
 webapp
 
   
 
 configSets/${config.configSet}
   
 
   
 

in profiles:

   
   user-x
   
 
   user
   x
 

 

   userX
 
   

We make our package using

mvn package -Duser=x

and it will override, in war, existing files with those found in 
configSets/userX/



--
David Delbecq
Institut Royal Météorologique
Ext:557


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



overwriting external resources

2008-03-18 Thread Dominik Heller
Hi i am pretty new to maven and encountered a problem by overwriting some 
external resources. I am using maven 2.0.7 and the maven-war-plugin 2.0.2. What 
I want to do is to overwrite a folder config in the WEB-INF containing some 
files with an other folder config which is stored in an external resource 
folder until I build the project.
In the end it looks pretty much like this:

-src/main/
   -Customer/config
 -web.xml
 -config.xml
 -...
   -webapp/WEB-INF
 -config/...
 -web.xml

when building the project i want to use profiles to replace the web.xml and the 
config foilder in the WEB-INF. For replacing the web.xml I am using the 
 property but so far I didn't find a way to overwrite the config folder 
in the WEB-INF.
Any ideas someone??

thx in advance
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]