Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2905
| From | "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Swing Gui / Ant |
| Message-ID | <5t42hdF1asu7uU1@mid.individual.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <676cf21c-f5c3-49b3-b030-a2b4f6b3ae21@x29g2000prg.googlegroups.com> |
| Date | 2011-04-27 15:41 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Daniel Gee wrote on 22.12.2007 09:36: > On Dec 21, 6:40 am, Emmanuel Ayanrinola <tos...@gmail.com> wrote: >> I have a question, how can i trigger an ant job from swing. I will >> like ant to pull it values from the swing and build based on selected >> value from the swing GUI. Is there any jar file that will make the >> process easier? Has anyone done anything like this? The other part is >> can one trigger a Macro from swing > > well based on your swing components you just run the desired command > line eg: > > String desiredCommandLine = "ant "+ myGUI.figureArgsString(); > Runtime.getRuntime().exec(desiredCommandLine); No need to run an external process. Ant is just a Java program/class and can be called directly if the libraries are on the classpath of the calling app. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Swing Gui / Ant "Daniel Gee" <daniel.gee@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000 Re: Swing Gui / Ant "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
csiph-web