ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: possible to open an alert window?
Date Fri, 26 Oct 2007 08:31:14 GMT
 
Hi,

-----Original Message-----
From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com] 
Sent: Thursday, October 25, 2007 4:52 PM
To: Ant Users List
Subject: Re: possible to open an alert window?

/*

or use <script>
    <script language="beanshell">
      import javax.swing.*;
      JOptionPane.showMessageDialog(
          null, "A long and boring message",
         "Danger Danger", JOptionPane.ERROR_MESSAGE);
    </script>

*/

neat !!

the same with ruby for people like me ;-) 

<script language="ruby">
<![CDATA[
include Java
javax.swing.JOptionPane.showMessageDialog(
   nil, "A long and boring message",
   "Danger Danger", javax.swing.JOptionPane::ERROR_MESSAGE)
]]>
</script>

Regards, Gilbert

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


Mime
View raw message