If a servlet-based application would fit your requirements, you might be interested in this article: http://www.onjava.com/lpt/a/2529/
I've used this technique to write a servlet-based build app that exposes some properties (with lists, checkboxes, etc) so that the buildmeister doesn't have to deal directly with build.properties files. Andy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 7:32 AM To: [email protected] Subject: Call specific Targets from a GUI Hello, I am trying to create a GUI that will allow a user to press either of two buttons. If they press the first button then a target within the build.xml is executed i.e. compile a set of java files outputted to a specific directory. If they press the second button the same applies but again is outputted to a second directory. I have been messing with import org.apache.tools.ant.Task; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Task; but not getting very far. I have managed to create java files that can call different tasks from the command prompt i.e. ant run or ant run2 which uses the class file to pass arguments etc...to the build.xml file. What is the best place to start to design a GUI that will allow me to call specific targets from an application or is this even possible! Regards, John -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
