ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16555] New: - Java task used with output attribute looses last output line if the line does not end with \r\n.
Date Wed, 29 Jan 2003 19:59:23 GMT
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.

           Summary: Java task used with output attribute looses last output
                    line if the line does not end with \r\n.
           Product: Ant
           Version: 1.5.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: oohay19592002@yahoo.com


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

	<target name="test" depends="init">
		<java classname="com.sergiu.utils.test00"
			classpathref="run.classpath"
			output="${tmp}/run.test00">
		</java>
		<loadfile property="LOADED.PROP" srcFile="${tmp}/run.test00"/>
		<echoproperties/>
	</target>



package com.sergiu.utils;
public class test00 {
	public static void main(String[] args) {
				System.out.println("this is line 00");
				System.out.println("this is line 01");
				System.out.print("this is line 02");
	}
}


$ cat var/tmp/run.test00
this is line 00
this is line 01

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


Mime
View raw message