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 28547] New: - Java task writes extra blank line after process output, without leading [java] tag
Date Thu, 22 Apr 2004 23:34:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28547>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28547

Java task writes extra blank line after process output, without leading [java] tag

           Summary: Java task writes extra blank line after process output,
                    without leading [java] tag
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: shankar@cotagesoft.com


Try compiling the following code into a "foo.class", and executing the ant
project below:

== foo.java ==
class foo {
  public static void main(String[] args) {
    System.out.println("Hello");
  }
}

== build.xml ==
<?xml version="1.0"?>
<project name="try" default="default">
  <target name="default">
    <echo message="Before"/>
    <java fork="true" classpath="." classname="foo"/>
    <echo message="After"/>
  </target>
</project>



The output from Ant 1.5.4 is as expected:

Buildfile: build.xml

default:
     [echo] Before
     [java] Hello
     [echo] After

The output from Ant 1.6.1 has an empty blank line after the Hello:

Buildfile: build.xml

default:
     [echo] Before
     [java] Hello

     [echo] After


This is somewhat disconcerting. It's even more noticeable when the java process
doesn't write anything at all.

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


Mime
View raw message