2008/7/2 jantje <[EMAIL PROTECTED]>: > > Ok (yes, I am working in /bin/bash), now I added this line, but it still does > not suppress the output: (<arg value="2>&1>/dev/null"/>) > > > <exec executable="/usr/bin/dir2lzm" failonerror="true"> > <arg value="/tmp/module"/> > <arg value="${basedir}/build/application/lzm/project.lzm"/> > <arg value="2>&1>/dev/null"/> > </exec>
Isn't this because ant doesn't start processes via bash (or any other shell), but invokes them directly? It wouldn't make sense for it to automagically start them via bash because this would silently introduce a platform-specific dependency. But redirection is a shell function... You'd have to do something like <exec executable="/usr/bin/bash" failonerror="true"> <arg value="-c" /> <arg value="'/usr/bin/dir2lzm /tmp/module ${basedir}/build/application/lzm/project.lzm &>/dev/null'" /> </exec> ... I think. Andrew. PS You can do &> as in my example to redirect both streams to the same place, see http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]