ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Using Exec within my own Task, divert stdout to null?
Date Mon, 10 Feb 2003 09:38:43 GMT
On Fri, 7 Feb 2003, David McTavish <dmctavish@sandvine.com> wrote:

> Is there a way that I can divert the standard output of an exec task
> used within my own custom task to /dev/null?

exec.setTask(new File("/dev/null"));

> Also, any ideas on how to "correct" the environment variable above
> (PATH), such that it works on both cygwin and Windows.

No idea, sorry.

Stefan

Mime
View raw message