ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Moebius <stmoeb...@yahoo.com>
Subject Re: <echo> multiline output
Date Mon, 03 Jun 2002 14:03:47 GMT
Mmh. Strange.

<echo>
  This is only a demo.
  ${line.separator}
  Specifically, a demo with an empty line in the middle.
</echo>

..does the job, while

<echo>
  This is only a
demo.${line.separator}${line.separator}${line.separator}
  Specifically, a demo with an empty line in the middle.
</echo>

does not. Same result with &#xa;

Thank you anyway,

Stefan

--- Erik Hatcher <jakarta-ant@ehatchersolutions.com> wrote:
> This is probably due to the change in XML parser that we're using. 
> Have you
> tried using a CDATA section?  That might fix the multiline output. 
> Or
> probably using ${line.separator} (I think) or XML entities (like
> 
) .
> 
>     Erik
> 
> 
> ----- Original Message -----
> From: "Stefan Moebius" <stmoebius@yahoo.com>
> To: <ant-dev@jakarta.apache.org>
> Sent: Monday, June 03, 2002 9:42 AM
> Subject: <echo> multiline output
> 
> 
> > <echo>
> >   This is only a demo.
> >
> >   Specifically, a demo with an empty line in the middle.
> > </echo>
> >
> > ... produces different output using ant 1.4.1 or ant 1.5beta1/2:
> > ant 1.4.1:
> >
> > >     [echo]
> > >  This is only a demo.
> > >
> > >  Specifically, a demo with an empty line in the middle.
> >
> > ant 1.5beta2:
> >
> > >     [echo]   This is only a demo.
> > >     [echo]   Specifically, a demo with an empty line in the
> middle.
> >
> > I check the changes documentation but couldn't find anything
> related to
> > the <echo> task. Is the behavior of 1.5b2 intended? If so, how can
> I
> > get a linefeed to appear in the output?
> >
> > Cheers,
> > Stefan
> >
> > =====
> > Stefan Moebius       <stmoebius@yahoo.com>
> >   Wurzener Str. 43        +49 351 8475827
> >   01127 Dresden           +49 172 8739617
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:  
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:ant-dev-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-dev-help@jakarta.apache.org>
> 


=====
Stefan Moebius       <stmoebius@yahoo.com> 
  Wurzener Str. 43        +49 351 8475827
  01127 Dresden           +49 172 8739617

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message