ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: How to suppress <exec> output?
Date Wed, 17 Mar 2004 21:41:53 GMT
--- barry@goodconsultants.com wrote:
> Matt,
> 
> I dont think output="${null.device}" works for me.
> Any reasons? Do i need to 
> set something in order to use it?

You've got to do some OS conditional stuff:

<condition property="os.iswindows">
  <os family="windows" />
</condition>

<condition property="os.isunix">
  <os family="unix" />
</condition>

<target name="setnulldevice" depends="nul,devnull" />

<target name="nul" if="os.iswindows">
  <property name="null.device" value="NUL" />
</target>

<target name="devnull" if="os.isunix">
  <property name="null.device" value="/dev/null" />
</target>

-Matt


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message