You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Attale, Pramith BGI UK" <Pr...@barclaysglobal.com> on 2003/04/04 03:11:10 UTC

concat force new line

Hi,

How would I go about forcing concat to add a new line when using a fileset?

Pram

Re: concat force new line

Posted by peter reilly <pe...@corvil.com>.
one test case is easy..., but like
I said, the code is hairly so there
may be conditions were it would fail.

I tested the simple unit test on dos and unix, but
the test is very simple.
Peter

On Friday 04 April 2003 08:56, Stefan Bodewig wrote:
> On Fri, 4 Apr 2003, peter reilly <pe...@corvil.com> wrote:
> > (So the code needs to be reviewed...)
>
> An accompanying test case would certainly help ;-)
>
> Thanks, Peter
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Re: concat force new line

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 4 Apr 2003, peter reilly <pe...@corvil.com> wrote:

> (So the code needs to be reviewed...)

An accompanying test case would certainly help ;-)

Thanks, Peter

Stefan

Re: concat force new line

Posted by peter reilly <pe...@corvil.com>.
I am just about to commit such a patch :).

The code is a little hairly as it tries to add
a new line (system dependant) to the end of each file only if 
the file is not terminated by a new line. (So
the code needs to be reviewed...)

I will add it as a patch to 12511.

Peter

On Friday 04 April 2003 07:35, Stefan Bodewig wrote:
> On Thu, 3 Apr 2003, Pramith Attale <Pr...@barclaysglobal.com>
>
> wrote:
> > How would I go about forcing concat to add a new line when using a
> > fileset?
>
> You can't, sorry.
>
> What you can do is vote for
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12511> and even
> better, send a patch to implement the enhancement request 8-)
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Re: concat force new line

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 3 Apr 2003, Pramith Attale <Pr...@barclaysglobal.com>
wrote:

> How would I go about forcing concat to add a new line when using a
> fileset?

You can't, sorry.

What you can do is vote for
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12511> and even
better, send a patch to implement the enhancement request 8-)

Stefan