I had done similar work. Hope it gives you some idea. I have a JSP Xml-Rpc Client which calls a method in a class on server. It has Runtime.exec command to execute a bat file.
In my bat file I execute my ant script with all the parameters I want to pass on to a particular target. (as from command prompt) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 7:32 AM To: user@ant.apache.org 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]