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

--- Comment #3 from Ansis Svaza <[email protected]> ---
I found ugly workaround by normalizing newline characters before output reaches
ANT level using cygwin tools mac2unix.exe and unix2dos.exe like

cmd /c "dcc32.exe all params | mac2unix | unix2dos"

<macrodef name="dcc32">
  <attribute name="file" />
  <attribute name="filebase" />
  <attribute name="switches" default="" />
  <attribute name="subdir" default="" />
  <attribute name="show" default="true" />
  <sequential>
    <delete>
      <fileset dir="${logdir}" includes="_cmp_@{file}.*,_err_@{file}.*" />
    </delete>

    <echo>Compile: @{subdir}@{file}</echo>
    <move file="@{filebase}.cfg" tofile="@{filebase}.cfg.backup"
failonerror="false"/>
    <exec executable="cmd" dir="@{subdir}" failonerror="true"
        output="${logdir}\_cmp_@{file}.log" append="true">
      <arg line="/C &quot;${delphihome}\bin\dcc32.exe @{file} -B
-E&quot;.&quot; -LE&quot;.&quot; -LN&quot;.&quot; -Z&quot;.&quot; -A -H -W -GD
-cg -O -I
-$A+,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N+,O-,P+,Q+,R-,S-,T-,U-,V-,W-,X+,Y+,Z1
${dcc32_lib} -$M16384,1048576 -K$00400000 -N&quot;${dcudir}&quot; @{switches} |
D:\cygwin\bin\mac2unix.exe | D:\cygwin\bin\unix2dos.exe&quot;" />
    </exec>
  </sequential>
</macrodef>

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

Reply via email to