[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]