Well just include the environment variables in your call to the ear
task... For example, I am modifying the example given in the Ant
documentation for creating an ear:
<ear destfile="${build.dir}/webpro${xyz}${yyy}.ear"
appxml="${src.dir}/metadata/application.xml">
<fileset dir="${build.dir}" includes="*.jar,*.war"/>
</ear>
HTH,
Flossy
On Tue, 21 Jul 2009, [email protected] wrote:
Hi,
I have an build.xml file.
If I run the target "ear-target" using ant -Dxyz=1 -Dyyy=1 ear-target @
command prompt, it should create webpro11.ear & webpro11.war
& if I run "ear-target" using ant -Dxyz=1 -Dyyy=2 ear-target @ command
prompt, it should create webpro12.ear & webpro12.ear
How can I achieve this ?
Any idea?
Thanks in adavance.
Regards,
evviswanath
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]