Hm, i've tried with a txtfile like that :
------------------------ Bla blubbbber asda ASDF 12345678 asdf ------------------------ and : <loadfile property="bla" srcfile="y:/test2.txt"/> <target name="depends"> <echo>${bla}</echo> </target> gives me = [echo] Bla blubbbber [echo] [echo] [echo] asda [echo] ASDF [echo] 12345678 [echo] [echo] asdf so no spaces or linefeeds are stripped !? maybe you're using <loadfile ... > with a filterchain ?? but even with = <loadfile property="bla" srcfile="y:/test2.txt"> <filterchain> <trim/> <ignoreblank/> </filterchain> <loadfile> i get = depends: [echo] Bla blubbbber [echo] asda [echo] ASDF [echo] 12345678 [echo] asdf means the spaces on line 1 stay as they are show some snippets we need more details here Regards, Gilbert -----Original Message----- From: Hans Schwaebli [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 12:02 PM To: Ant Users List Subject: RE: <echo> doesn't work for ASCII art Doesn't work. Same effect. Lets say you have three spaces in a row. They are all trimmed. "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: Yup there is a task = first load the file as a property : ... and later echo the property ${bla} btw after reading your first mail a second time = i first thought you had probs with linefeeds, but you wrote "multiple spaces are trimmed" why are spaces trimmed when using ??? Regards, Gilbert -----Original Message----- From: Hans Schwaebli [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 10:44 AM To: Ant Users List Subject: RE: doesn't work for ASCII art Or is there a task to print the contents of a text file (not trimming spaces)? "Rebhan, Gilbert" wrote: hm, maybe you could use a multilineproperty the format has to be written like that = myasciiart=\n line0 \ \n line1 \ \n line2 \ \n line3 \ \n line4 \ \n line5 \ \n line6 \ you have to wrap every line of your ascii art between \n and \ and then ${myasciiart} Regards, Gilbert -----Original Message----- From: Hans Schwaebli [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 9:47 AM To: user@ant.apache.org Subject: doesn't work for ASCII art I want to echo ASCII art. But since multiple spaces are trimmed, it does not work. How can I do it? --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]