ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christine Gerstenmayer" <christine.gerstenma...@chello.at>
Subject Howto do this in Ant: Replace a placeholder in a file with the content in another file
Date Mon, 04 Jul 2005 20:26:11 GMT
Hi all,

I need your help.

 

I want to replace a placeholder in a file with the content of another file.

 

e.g.

 

File 1:

Xxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxx

&place

 

File 2:

Abcdefg

Abcdefg

Abcdefg

 

I want to replace "&place" in File 1 with the content of File 2 so that
afterwards File 1 looks like that:

 

File 1:

Xxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxxxx

Xxxxxxxxxxxxxxx

Abcdefg

Abcdefg

Abcdefg

 

How can I do this in Ant ?

 

Please help.

 

Thanks in advance.

 

Christine

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message