You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/01/30 16:18:58 UTC

DO NOT REPLY [Bug 16555] - Java task used with output attribute looses last output line if the line does not end with \r\n.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16555>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16555

Java task used with output attribute looses last output line if the line does not end with \r\n.

conor@cortexebusiness.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.6



------- Additional Comments From conor@cortexebusiness.com.au  2003-01-30 15:18 -------
I've fixed this in HEAD (Ant 1.6) for now. The new code will flush the buffers
at the end of a java task and them propagate whether a end-of-line marker is
required. I'm not sure yet whether to include for 1.5.2 due to the extensive
nature of the fix.

For 1.5.1, a workaround is to fork the java task - this gives the correct output.

One alternative for 1.5.2 would be to just flush the output but leave out the
eol indication. This will have the effect of adding an eol to the last line

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