Hello Michael,

Try using <trim> inside filter chain.

A sample snippet of the build
----
<move file="tab.txt" tofile="${masterlistfile}">
        <filterchain>
                <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"/>
                <tokenfilter>
                        <trim/>
                        <ignoreblank/>
                </tokenfilter>
        </filterchain>

</move>
----

Mohan Guttula

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

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
whitespace.

ex.

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

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**************************************************************
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.
TIAA-CREF
**************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to