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