ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harnack Frank" <Frank.Harn...@bitmarck.de>
Subject RE: Trim leading spaces line by line
Date Tue, 10 Mar 2009 07:54:48 GMT
Hello Felix,

try this:

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

Regards

Frank


-----Original Message-----
From: Felix Dorner [mailto:FDorner@zed.com] 
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@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