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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to