I can see both sides of the argument - as an alternative, could you not put
it in the NAnt.exe.config as an app setting?  Maybe something like
"nant.echo.appendnewline"

 

This would allow the end user to chose the behaviour required, and avoid
possibility of having to add a skipNewline attribute to lots of elements if
they don't want a new line?

 

Jut an idea.

 

Cheers,

Bill

  _____  

From: Gert Driesen [mailto:gert.drie...@telenet.be] 
Sent: 09 July 2009 20:06
To: 'Chris Lambrou'; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] newline in echo

 

Chris,

 

I think we should keep the new behavior - meaning not implicitly add a new
line.

This also matches the behavior of Ant.

 

Gert

 

From: Chris Lambrou [mailto:chris.lamb...@grantadesign.com] 
Sent: maandag 22 juni 2009 13:50
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] newline in echo

 

Gert,

 

I'm concerned that the breaking change to the echo task could cause problems
for many people who use that task. Although we're having problems with the
echo task appending a newline character to the output, it seems to me that
that's not an entirely unreasonable thing for the echo task to do - after
all, that's what it currently does.

 

What we're really missing is the opposite of the loadfile task. Just as
loadfile transfers the contents of a text file to a property, we require a
task (savefile, say) that transfers the contents of a property to a text
file.

 

I'd be happy to submit a patch to implement this, and I urge you to revert
the breaking changes to the echo task, or at least make the new
functionality available in a non-breaking way (e.g. perhaps add a
skipNewline boolean property that defaults to false).

 

Chris

 

 

From: Gert Driesen [mailto:gert.drie...@telenet.be] 
Sent: 21 June 2009 19:45
To: Paul Allington
Cc: nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] newline in echo

 

Hi Paul,

 

This issue is now fixed in CVS.

Together with the fix for #2807728, I introduced a breaking change for
<echo>:

we now default to the system's current ANSI code page when writing message
to a file.

I also added an encoding attribute, so you can easily set the encoding back
to UTF-8.

 

I've struggled for at least two hours to get a new nightly build uploaded
before I gave up :-(

I'll have to find another place to host our nightly builds, as I've already
lost too much of the little time I have with sf issues.

 

Gert

 

From: Paul Allington [mailto:paul.alling...@grantadesign.com] 
Sent: woensdag 17 juni 2009 16:35
To: Gert Driesen
Subject: RE: [NAnt-users] newline in echo

 

Hello Gert

 

I have added a bug.  The id is 2807728.  How long do you think until a fix
for this becomes available?

 

Many thanks, Paul

 

 

From: Gert Driesen [mailto:gert.drie...@telenet.be] 
Sent: 17 June 2009 15:28
To: Paul Allington; nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] newline in echo

 

Hi Paul,

 

Please submit a bug report for this.

I'll then fix it asap.

 

Gert

 

From: Paul Allington <mailto:paul.alling...@grantadesign.com>  

Sent: Wednesday, June 17, 2009 3:21 PM

To: nant-us...@lists.sourceforge.net.

Subject: [NAnt-users] newline in echo

 

Running <echo file="file.txt">This is my text</echo> seems to actually
output:

 

This is my text\n

 

-which is wrong, I didn't ask for a newline to appear at the end, and is
actually now causing problems.  Is there a way to avoid this newline
appearing?

 

Paul

  _____  

----------------------------------------------------------------------------
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects 

  _____  

_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Internal Virus Database is out of date.
Checked by AVG - www.avg.com
Version: 8.5.285 / Virus Database: 270.12.59/2165 - Release Date: 06/09/09
05:53:00

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.285 / Virus Database: 270.12.80/2187 - Release Date: 06/19/09
06:53:00

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to