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 7330] New: - exec writes stderr into output
Date Thu, 21 Mar 2002 16:29:15 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=7330>.
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=7330

exec writes stderr into output

           Summary: exec writes stderr into output
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: cspeter@rmki.kfki.hu


The build may become corrupted if a process called by exec prints warnings to
stderr.
        <exec dir="." executable="/usr/bin/perl" output="p.out">
        <arg line="p.pl" />
        </exec>
p.out will contain both stderr AND stdout, although only stdout is useful.

Example. On some redhat linux 7.2 systems, perl always writes the following
warning into stderr (a configuration problem that I will never have time to debug):
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en.ISO-8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Normally, this warning is harmless because simple unix scripts and makefiles use
redirections of stdout only (">" and "|" operators). Only ant fails, when a
target uses exec's mixed stdout+stderr output:
...
     [java] skipped /home/cspeter/marvin/obf-applic/back: cannot read
     [java] skipped /home/cspeter/marvin/obf-applic/to: cannot read
     [java] skipped /home/cspeter/marvin/obf-applic/the: cannot read
     [java] skipped /home/cspeter/marvin/obf-applic/standard: cannot read
     [java] skipped /home/cspeter/marvin/obf-applic/locale: cannot read
     [java] skipped /home/cspeter/marvin/obf-applic/(C).
     [java] marvin/util/d.class: cannot read

BUILD FAILED

Possible solutions:
1. exec's "output" argument should only contain stdout
2. a new "stdout" argument should be introduced

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


Mime
View raw message