Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 11293 invoked from network); 13 Jan 2005 15:38:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jan 2005 15:38:50 -0000 Received: (qmail 6360 invoked by uid 500); 13 Jan 2005 15:38:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 6316 invoked by uid 500); 13 Jan 2005 15:38:44 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 6296 invoked by uid 99); 13 Jan 2005 15:38:44 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from exchus1.pega.com (HELO exchus1.rpega.com) (198.22.153.242) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 13 Jan 2005 07:38:43 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Call specific Targets from a GUI Date: Thu, 13 Jan 2005 10:38:40 -0500 Message-ID: <37D311729CFBE4469223D519F60703AA076770BD@exchus1.rpega.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Call specific Targets from a GUI Thread-Index: AcT5a+y/xCbRavLwR3KGrKWwb+OrywAGcmrA From: "Radha Sangal" To: "Ant Users List" , X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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: longie@esatclear.ie [mailto:longie@esatclear.ie]=20 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=20 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: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org