ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Writing java.home to file
Date Thu, 18 Nov 2004 12:22:41 GMT
Works for me
   <echo file="java.home.txt">${java.home}</echo>
-->
C:\jdk\142_03\jre

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Thomas Saxtoft [mailto:TS@sondagsavisen.dk]
> Gesendet am: Donnerstag, 18. November 2004 13:08
> An: Ant Users List
> Betreff: Writing java.home to file
> 
> I need to write the ant built-in property ${java.home} to a 
> file. How do
> I do it on a windows machine without loosing the backslash. E.g my
> java.home right now is c:\j2sdk1.4.2_03. When I write it to a file it
> becomes c:j2sdk1.4.2_03. So it is not an option replacing 
> characters in
> the file, because then it is already too late.
> 
> Thanks in advance,
> 
> Thomas Saxtoft
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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