You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jack Woehr <ja...@purematrix.com> on 2004/04/05 19:23:06 UTC
Copy task overwrite inserting 0x0d carriage return?
Switched to 1.6.1 on our project ... Copy with overwrite now seems to be inserting carriage returns:
0000000 # ! / b i n / b a s h \r \n
This makes the shell abort. How do we turn this behavior off? Don't see it mentioned in the manual pages,
though maybe I've missed it.
--
Jack J. Woehr # "[F]ar in the empty sky a solitary esophagus slept
http://www.well.com/~jax # upon motionless wing; everywhere brooded stillness,
http://www.softwoehr.com # serenity, and the peace of God." - Mark Twain
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Copy task overwrite inserting 0x0d carriage return?
Posted by "Jack J. Woehr" <ja...@purematrix.com>.
Stefan Bodewig wrote:
> I general I don't think that each and every bug fix needs to go into
> the manual. The old behavior was clearly bogus and 1.6's behavior
> should be expected IMHO.
Very good, thanks, Stefan.
--
Jack J. Woehr # We have gone from the horse and buggy
Senior Consultant # to the moon rocket in one lifetime, but
Purematrix, Inc. # there has not been a corresponding moral
www.purematrix.com # growth in mankind. - Dwight D. Eisenhower
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Copy task overwrite inserting 0x0d carriage return?
Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 05 Apr 2004, Jack Woehr <ja...@purematrix.com> wrote:
> Have I described a change in Ant's behavior between 1.5 and 1.6
> correctly?
Yes, it was a bug that has been fixed. Note that it (the modification
of line ends) only happened when <copy> was used with filter set to
true or with nested filterreaders.
<http://issues.apache.org/bugzilla/show_bug.cgi?id=18476>
> If so, I should write some Manual text and submit it.
We try to capture most bug fixes in WHATSNEW and in fact it is there
,----
| * Filter readers were not handling line endings properly. Bugzilla
| Report 18476.
`----
although it may be a bit hard to find when you are only looking at
your <copy> task.
I general I don't think that each and every bug fix needs to go into
the manual. The old behavior was clearly bogus and 1.6's behavior
should be expected IMHO.
Stefan
--
http://stefanbodewig.blogger.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Copy task overwrite inserting 0x0d carriage return?
Posted by Jack Woehr <ja...@purematrix.com>.
Matt Benson wrote:
> Do you mean you want stuff in Unix format and it was
> being (accidentally) fixed for you before that way?
Yes, exactly.
> If you need to make this happen explicitly, just use
> <fixcrlf>. Otherwise I still don't understand what
> you've got happening.
What was happening was that unbeknownst to us a programmer
had inserted a CRLF file in our source (using a Windoze testing
machine for on-the-fly coding) ... when we switched to 1.6.1 it
became apparent because it appears 1.5 was removing the CR
automagically.
All I need to know now is if I have correctly described a change
in Ant's behavior 1.5 -> 1.6 that should be documented, in which
case I'll submit a sentence in a diff.
--
Jack J. Woehr # "[F]ar in the empty sky a solitary esophagus slept
http://www.well.com/~jax # upon motionless wing; everywhere brooded stillness,
http://www.softwoehr.com # serenity, and the peace of God." - Mark Twain
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Copy task overwrite inserting 0x0d carriage return?
Posted by Matt Benson <gu...@yahoo.com>.
Do you mean you want stuff in Unix format and it was
being (accidentally) fixed for you before that way?
If you need to make this happen explicitly, just use
<fixcrlf>. Otherwise I still don't understand what
you've got happening.
HTH,
Matt
--- Jack Woehr <ja...@purematrix.com> wrote:
> Matt Benson wrote:
>
> > --- Jack Woehr <ja...@purematrix.com> wrote:
> > > Switched to 1.6.1 on our project ... Copy with
> > > overwrite now seems to be inserting carriage
> > > returns:
> > >
> > > 0000000 # ! / b i n / b a
> s
> > > h \r \n
> > >
> >
> > Can you provide more context?
>
> Actually what appears to have happened is that Ant
> 1.5.x was *removing* CR's from files copied with
> overwrite.
> So a file that a $&*(ing Windoze machine had strewn
> with CR's was being *repaired* by Ant until we
> switched
> to 1.6.1. Problem solved in source tree. Have I
> described a change in Ant's behavior between 1.5 and
> 1.6 correctly?
> If so, I should write some Manual text and submit
> it.
>
> --
> Jack J. Woehr # "[F]ar in the empty sky a
> solitary esophagus slept
> http://www.well.com/~jax # upon motionless wing;
> everywhere brooded stillness,
> http://www.softwoehr.com # serenity, and the peace
> of God." - Mark Twain
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Copy task overwrite inserting 0x0d carriage return?
Posted by Jack Woehr <ja...@purematrix.com>.
Matt Benson wrote:
> --- Jack Woehr <ja...@purematrix.com> wrote:
> > Switched to 1.6.1 on our project ... Copy with
> > overwrite now seems to be inserting carriage
> > returns:
> >
> > 0000000 # ! / b i n / b a s
> > h \r \n
> >
>
> Can you provide more context?
Actually what appears to have happened is that Ant 1.5.x was *removing* CR's from files copied with overwrite.
So a file that a $&*(ing Windoze machine had strewn with CR's was being *repaired* by Ant until we switched
to 1.6.1. Problem solved in source tree. Have I described a change in Ant's behavior between 1.5 and 1.6 correctly?
If so, I should write some Manual text and submit it.
--
Jack J. Woehr # "[F]ar in the empty sky a solitary esophagus slept
http://www.well.com/~jax # upon motionless wing; everywhere brooded stillness,
http://www.softwoehr.com # serenity, and the peace of God." - Mark Twain
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Copy task overwrite inserting 0x0d carriage return?
Posted by Matt Benson <gu...@yahoo.com>.
--- Jack Woehr <ja...@purematrix.com> wrote:
> Switched to 1.6.1 on our project ... Copy with
> overwrite now seems to be inserting carriage
> returns:
>
> 0000000 # ! / b i n / b a s
> h \r \n
>
Can you provide more context?
-Matt
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org