Problem with filtering files from a specific folder inside War project

2007-05-25 Thread Kiran Kodlady

Hello,

I got some application specific problem while doing build for a enterprise
project.

There are multiple folders reside in a War project , each consists of
different files.
I need to include all files from a single folder during a particular build.

Can anyone tell me what are tha changes need to be done to achieve this ?

Thanks,

Kiran kodlady

-- 
View this message in context: 
http://www.nabble.com/Problem-with-filtering-files-from-a-specific-folder-inside-War-project-tf3815206s177.html#a10800128
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problem with filtering files from a specific folder inside War project

2007-05-25 Thread Arnaud Bailly
Kiran Kodlady [EMAIL PROTECTED] writes:

 Hello,

 I got some application specific problem while doing build for a enterprise
 project.

 There are multiple folders reside in a War project , each consists of
 different files.
 I need to include all files from a single folder during a particular build.

 Can anyone tell me what are tha changes need to be done to achieve this ?

 Thanks,

 Kiran kodlady


Hello,
Not sure I understand your problem, but may be
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 and profiles could be useful:
 - define different profiles, each with different inclusion
 configurations 

HTH

-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Problem with filtering files from a specific folder inside War project

2007-05-25 Thread Arnaud Bailly
[EMAIL PROTECTED] writes:

 Hey..

 Thanks a lot for replying back..U saved my day!!
 Still i am not able to achieve my task completely..
 Let me address my issue in detail :

 War project structure is like below :

  xyz_War---config--  IST- A bunch of xmls related to IST 
 phase

-- UAT-A bunch of xmls related 
 to UAT phase

 -- PRD-A bunch of xmls related 
 to PRD phase

 --src--main--java
 --target
 --webapp--WEB-INF--web.xml   

 Explanation : xyz_War consists of folders like config, src,webapp,target.
config folder consists of different sub folders related to 
 each testing phase of application(IST,UAT,PRD). These folders contain same 
 set of files with different contents altogether.

 For a particular build i need to bundle only one set of files among IST, UAT 
 or PRD.

 Hope u got my question. I need to pass this parameter(IST,UAT or PRD) during 
 runtime of build creation.


Hello, 
What I would do is use war overlay mechanism
(http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html): 
 1. create one standard war project per specific target, with their
 own particular files
 2. make each project a dependency of the main project according to a
 profile:

profiles
 profile
   idist/id
dependencies
 dependency
  groupIyour.group
  artifactIdISTconfig
  version1.0-SNAPSHOT
  typewar 
  scoperuntime
...
 profile
   iduat/id
dependencies
 dependency
  groupIyour.group
  artifactIdUATconfig
  version1.0-SNAPSHOT
  typewar 
  scoperuntime

Then during build:

$ mvn -Puat install

or 

$ mvn -Pistt install

will create a war with your specific  configuration files laid over
your main war.

HTH
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, PhD

\tel (33) 3 59 08 61 98
\mob (33) 6 17 12 19 78
\web http://www.oqube.com

RCS Lille B 490 219 730


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