https://issues.apache.org/bugzilla/show_bug.cgi?id=56470

            Bug ID: 56470
           Summary: AntUnits logcontent task returns a one line log string
           Product: Ant
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AntUnit
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31569
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31569&action=edit
Patch file for LogCapturer.java

The logcontent task outputs the log on one single line.

Using the following in the AntUnit test:

<project> 
...
    <target name="tearDown">
        <echo>This line has no EOL character appended...</echo>
        <echo>So this is on the same line in the log file</echo>
        <!-- Write to logfile -->
        <concat destfile="${logfile}" fixlastline="yes">
            <au:logcontent/>
        </concat>        
    </target>
</project>

This can be easily fixed in: org.apache.ant.antunit.LogCapturer

There is a SVN patch attached that adds a LINE_SEPARATOR to the end of each log
entry in the LogCapturer.messageLogged method.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to