ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: <echo>'s new output-to-file adds extra spaces
Date Sun, 01 Oct 2000 00:58:54 GMT
Oh -- It's my own indentations in the build.xml file. How silly.

Thanks,
Diane
--- Jose  Alberto Fernandez <JFernandez@viquity.com> wrote:
> The answer is to use:
>  <echo file="...">This is the text.</echo>
> 
> or
>   <echo ....>This is the text.
> </echo>
> 
> notice to indentation of </echo>.
> 
> Jose Alberto
> 
> 
> > -----Original Message-----
> > From: Diane Holt [mailto:holtdl@yahoo.com]
> > Sent: Saturday, September 30, 2000 1:55 PM
> > To: ant-dev@jakarta.apache.org
> > Subject: <echo>'s new output-to-file adds extra spaces
> > 
> > 
> > Using the new file attribute for <echo> along with the append, ends up
> > having the appended text shifted over from the margin. Given 
> > this target: 
> >   
> > 
> >     <target name="testecho">
> >       <echo file="foofile">This is the initial text.
> >       </echo>
> >       <echo file="foofile" append="yes">This is additional text.
> >       </echo>
> >     </target>
> > 
> > Results in:
> > [binky] cat foofile
> > This is the initial text.
> >       This is additional text.
> >       [binky]
> > 
> > Note my system prompt is also shifted over. That's because 
> > (and is also
> > why the appended text is shifted), the initial <echo> to the 
> > file looks
> > like this (in 'vi' with :set list):
> > 
> > This is the initial text.$
> >       $
> > 
> > After the append, it looks like this:
> > 
> > This is the initial text.$
> >       This is additional text.$
> >       $
> > 
> > I tested FileWriter() to see if that was the extra-spaces 
> > culprit, but it
> > doesn't appear to be -- so I'm thinking maybe it's the way message is
> > being put together?
> > 
> > Diane
> > 
> > =====
> > (holtdl@yahoo.com)
> > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
> > http://photos.yahoo.com/
> > 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

Mime
View raw message