ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: <echo> doesn't work for ASCII art
Date Wed, 09 Aug 2006 12:41:29 GMT

you may also go with concat, as Jan already mentioned,
then you do not need to go the way via multilineproperty
and wrap every line betwenn \n ... \ =

<concat>
        <fileset dir="Y:" includes="test2.txt"/>
 </concat>

when no destfile attribute specified it appears on stdout

result =

 [concat]     Bla   blubbbber


 [concat]                         asda
 [concat] ASDF
 [concat] 12345678

 [concat]     asdf

with commandline ant but  _caution_ also beautified in eclipse ;-))
 

Regards, Gilbert

-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Sent: Wednesday, August 09, 2006 2:33 PM
To: Ant Users List
Subject: RE: <echo> doesn't work for ASCII art


OK, i see, you have probs with leading spaces

i think i have hit the problem

i tried with

---------------------------
    Bla   blubbbber


    asda
ASDF
12345678

    asdf
---------------------------

and =

<loadfile property="bla" srcfile="y:/test2.txt"/>
    
<target name="depends">
     <echo>${bla}</echo>      
	</target>

<target name="main" depends="depends">       
<echo>
      ech o 1   
</echo>
     
<echo>              echo   2</echo>   

</target>


1. 
result with commandline ant =

depends:
     [echo]     Bla   blubbbber
     [echo]
     [echo]
     [echo]                         asda
     [echo] ASDF
     [echo] 12345678
     [echo]
     [echo]     asdf

main:
     [echo]
     [echo]       ech o 1
     [echo]               echo   2
    

2.
result in eclipse

depends:
     [echo] Bla   blubbbber
     [echo] 
     [echo] 
     [echo] asda
     [echo] ASDF
     [echo] 12345678
     [echo] 
     [echo] asdf
main:
     [echo] ech o 1
     [echo] echo   2


So the output is beautified by your IDE :-)


Regards, Gilbert

-----Original Message-----
From: Hans Schwaebli [mailto:hans_schwaebli@yahoo.com] 
Sent: Wednesday, August 09, 2006 12:57 PM
To: Ant Users List
Subject: RE: <echo> doesn't work for ASCII art

Try it with
   
      adgl
   
     sdfsdf
   
  The result will be
   
  adgl
   
  sdfsdf

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