Hello Felix,

try this:

<replaceregexp
        file="xyz.txt"
        match="\s*"
        replace=""
        byline="true"
/>

Regards

Frank


-----Original Message-----
From: Felix Dorner [mailto:[email protected]] 
Sent: Monday, March 09, 2009 2:35 PM
To: Ant Users List
Subject: RE: Trim leading spaces line by line

I found the solution my self in the ant manual:

<move file="${source}" tofile="${dest}">
        <filterchain>
            <tokenfilter>
                 <deletecharacters chars="\t"/>
                   <trim/>
                   <ignoreblank/>
            </tokenfilter>
        </filterchain>
</move>

It would be nice to do this on-the-fly, so that source and dest are the
same. Is this possible somehow?

---------------------------------------------------------------------
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]

Reply via email to