ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guttula, Mohan" <>
Subject RE: Would like to suppress leading spaces in multi-line <echo> and <concat>
Date Mon, 01 May 2006 17:36:25 GMT
Hello Michael,

Try using <trim> inside filter chain.

A sample snippet of the build
<move file="tab.txt" tofile="${masterlistfile}">
		<concatfilter append="ind.txt"/>
		<concatfilter append="seq.txt"/>
		<concatfilter append="ops.txt"/>
		<concatfilter append="vw.txt"/>
		<concatfilter append="fn.txt"/>
		<concatfilter append="sp.txt"/>
		<concatfilter append="sql.txt"/>
		<concatfilter append="trg.txt"/>
		<concatfilter append="opb.txt"/>
		<concatfilter append="syn.txt"/>


Mohan Guttula

-----Original Message-----
From: Michael Giroux [] 
Sent: Monday, May 01, 2006 1:33 PM
To: Ant Users List
Subject: Would like to suppress leading spaces in multi-line <echo> and

Given that most ANT scripts use some form of indentation to improve
readability, it would be nice if the <echo> task had an option to
strip leading white-space.  In general, I would like the messages that
are sent to System.out (or logger) to be void of the leading


<echo>first line of message
    second line of message
    third line of message

The nested <header> element of the <concat> task does provide a
trimleading option, but that only applies to the header text.

Having a trimleading attribute for both <echo> and <concat> would be
very nice.

Michael Giroux

To unsubscribe, e-mail:
For additional commands, e-mail:

This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message