ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chabbewal, Navjeet" <navjeet.chabbe...@us.didata.com>
Subject RE: how to copy/move a file to dynamically generated file name
Date Fri, 14 Jun 2002 15:46:35 GMT
We moved to doing it this way and it works fine. Thanks for your help.

--Navjeet

> -----Original Message-----
> From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
> Sent: Wednesday, June 12, 2002 5:52 PM
> To: 'Ant Users List'
> Subject: RE: how to copy/move a file to dynamically generated 
> file name
> 
> 
> I think the recommended way is to create separate property 
> files, then:
> 
> <property file="${deployEnv}.property" prefix="env"/>
> <copy file="template.xml" tofile="${env.hostname}_${env.realm}.xml"/>
> 
> - Alexey.
> 
> -----Original Message-----
> From: Chabbewal, Navjeet [mailto:navjeet.chabbewal@us.didata.com]
> Sent: Wednesday, June 12, 2002 2:42 PM
> To: Ant Users List
> Subject: RE: how to copy/move a file to dynamically generated 
> file name
> 
> 
> 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:A.Solofnenko@mdl.com]
> > 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:DDevienne@lgc.com]
> > 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:navjeet.chabbewal@us.didata.com] 
> > Sent: Wednesday, June 12, 2002 4:20 PM
> > To: ant-user@jakarta.apache.org
> > 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:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message