Alexey,

I forgot to mention one thing, the environment name used in properties
file (dev in this case) is passed in to ant as -D property deployEnv. So
I tried ${${deployEnv}.hostname}_${${deployEnv}.realm}.xml but that does
not seem to work.

--Navjeet


> -----Original Message-----
> From: Alexey Solofnenko [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 5:30 PM
> To: 'Ant Users List'
> Subject: RE: how to copy/move a file to dynamically generated 
> file name
> 
> 
> You mean <copy file="template.xml" 
> tofile="${dev.hostname}_${dev.realm}.xml"
> />
> 
> - Alexey Solofnenko.
> 
> -----Original Message-----
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 2:28 PM
> To: 'Ant Users List'
> Subject: RE: how to copy/move a file to dynamically generated 
> file name
> 
> 
> As simple as <copy file="template.xml" tofile="BOMBAY_DEV.xml" />.
> Read the manual would help with this kind of questions ;-) --DD
> 
> -----Original Message-----
> From: Chabbewal, Navjeet [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, June 12, 2002 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: how to copy/move a file to dynamically generated file name
> 
> How can use copy/move to copy/move a file say template.xml to
> BOMBAY_DEV.xml, a dynamically generated filename,
> where BOMBAY and DEV are two properties defines in env.properties file
> (say two properties dev.hostname and dev.realm) ?
> 
> Thanks.
> 
> Navjeet S. Chabbewal
> Dimension Data
>  
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

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

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

Reply via email to