« Return to Thread: Trim leading spaces line by line

RE: Trim leading spaces line by line

by Harnack Frank-2 :: Rate this Message:

Reply to Author | View in Thread

Hello Felix,

try this:

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

Regards

Frank


-----Original Message-----
From: Felix Dorner [mailto:FDorner@...]
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: user-unsubscribe@... For additional
commands, e-mail: user-help@...


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

 « Return to Thread: Trim leading spaces line by line