ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: echoproperties and umlauts
Date Fri, 30 Dec 2005 08:06:28 GMT

Hi,

i just did another test =

my property.xml

<?xml version="1.0" encoding="UTF-8" ?> 
<bla>
...
<multiline>muß
Ä
Ö
ü</multiline>

</bla>
 
when using =
<echo file="bla.txt">${bla.multiline}</echo>

the multiline property is dumped as is to bla.txt

So there must be a difference between the filewriting in
echo and echoproperties task.

Maybe i can patch the echoproperties task, i'll have to check.

Regards, Gilbert

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Thursday, December 29, 2005 10:43 PM
To: Ant Users List
Subject: Re: echoproperties and umlauts

Rebhan, Gilbert wrote:
> addition
> 
> if i use =
> 
> <echoproperties prefix="bla" destfile="temp.txt" format="xml"/>
> 
> all works fine with linefeeds and umlauts,
> but i need it as "normal" propertyfile
> 

Ant uses the java APIs to export a "normal" property file, meaning one 
that is legal according to the java properties spec. The escaping and 
line breaks are part of that legality. I dont see any obvious way to 
change that behaviour.

-steve

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


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


Mime
View raw message