Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 4639 invoked from network); 12 Feb 2003 14:11:41 -0000 Received: from mail01.axelero.hu (HELO gil.axelero.hu) (195.228.240.76) by daedalus.apache.org with SMTP; 12 Feb 2003 14:11:41 -0000 Received: from wolverene (adsl-248-78.adsl-pool.axelero.hu [62.201.78.248]) by mail01.axelero.hu (iPlanet Messaging Server 5.1 HotFix 1.9 (built Dec 3 2002)) with SMTP id <0HA700BPY89X37@mail01.axelero.hu> for user@ant.apache.org; Wed, 12 Feb 2003 15:01:12 +0100 (MET) Date: Wed, 12 Feb 2003 15:01:57 +0100 From: Martin Porter Subject: RE: Ant Custom Task & Swing Client Problem In-reply-to: <879A5AD5DD0ED511891F0003473A9B5603CCC261@Z011004> To: Ant Users List Reply-to: martin.porter@liberica.com Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The only problem is that our deployment is pretty complex and invloves calling (at a future date) other GUI elements that are part of the various products that we offer. These run both standalone but are also used as part of the build process. I will take a look at the InputHandler class but I dont think it will be enough to serve our needs..... Thanks for the pointer though... -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] Sent: 12 February 2003 13:48 To: user@ant.apache.org Subject: AW: Ant Custom Task & Swing Client Problem There were some discussions on Ant-Dev Maillinglist about InputHandler. "You know that a Swing or AWT InputHandler and the task could do the same?" http://marc.theaimsgroup.com/?l=ant-dev&m=104444080627000&w=2 Maybe you can use the directly or get some hints from org.apache.tools.ant.taskdefs.Input and the org.apache.tools.ant.input.*. Jan Mat�rne -----Urspr�ngliche Nachricht----- Von: Martin Porter [mailto:martin.porter@liberica.com] Gesendet am: Mittwoch, 12. Februar 2003 13:30 An: ant-user@jakarta.apache.org Betreff: Ant Custom Task & Swing Client Problem Hi, I have written a custom Ant task that calls a client written in Swing that simply opens a window and requsts input from a few drop down boxes. I then use the Project get/set methods so set up properties related to user selection. All works fine but I cant get the window to stay open (without putting a Thread.sleep() in the custom task). The window opens and then immediately closes again (as if the ActionListeners are not there). It is not a classpath issue or anything like that as if the Thread.sleep() is used the GUI is found and opens as as expected. It then closes and sets the right values when the sleep() expires... When I run this from the command line or Visual Cafe it works fine and the window stays open as you would normally expect. It is only a problem rwhen run from Ant. Its there something that I should be doing to ensure the window stays open. I am not a GUI developer so any simple explainations welcome ! I am using Ant 1.5.1 on Windows 2000... Thanks Martin --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org