OK, finally i've found a working solution, without
hacking the echoproperties task.
If someone else runs into that ...
first step = dumping the properties to a tmpfile
<echoproperties prefix="dauftr" destfile="temmp.txt" />
second step = move the tmpfile to the final txtfile
using a filterchain
<move file="temmp.txt"
tofile="${txtpath}/${dirdate}/${projekt}_${timest}.txt">
<filterchain>
<tokenfilter>
<replacestring byline="true" from="\u00DF" to="ss"/>
<replacestring byline="true" from="\u00C4" to="Ae"/>
<replacestring byline="true" from="\u00E4" to="ae"/>
<replacestring byline="true" from="\u00D6" to="Oe"/>
<replacestring byline="true" from="\u00F6" to="oe"/>
<replacestring byline="true" from="\u00DC" to="Ue"/>
<replacestring byline="true" from="\u00FC" to="ue"/>
<replacestring byline="true" from="\n" to="${line.separator}"/>
</tokenfilter>
</filterchain>
bye4now, Gilbert
-----Original Message-----
From: Jeffrey E Care [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 11:00 PM
To: Ant Users List
Subject: Re: echoproperties and umlauts
I don't know what it will do to the line breaks, but you could maybe run
a
reverse native2ascii on the output file to "unescape" it.
JEC
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Steve Loughran <[EMAIL PROTECTED]> wrote on 12/29/2005 04:43:04 PM:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]