ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: make ant beep
Date Fri, 24 Jan 2003 14:03:37 GMT
On Fri, 24 Jan 2003, Tom Runnacles <tom@trunnacl.org> wrote:

> The java.awt.Toolkit class has a beep() method.  You could wrap a
> call to that up in a new Task and make it the last thing called by
> your buildfile.

<script> will do just fine.

Be careful to detect headless systems (Unix without X for example)
that may throw an exception at you when try to get the Toolkit.  There
System.out.println((char) 2) may be an alternative.

8-)

Stefan

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


Mime
View raw message