RE: how to invoke ant via java

2005-01-25 Thread Radha Sangal
String command = "cmd /c ant -buildfile E:\\RulesWeb_Content\\CvsDiffReports\\Cvs_Diffs.xml -DDevBuild1=" + build1 +" -DDevBuild2="+ build2 +" -l E:\\RulesWeb_Content\\CvsDiffReports\\autodiff.log"; Process proc =null; try { proc = Runtime.getRuntime().exec(command); -

Re: how to invoke ant via java

2005-01-19 Thread Alan Gutierrez
* softgnostics k <[EMAIL PROTECTED]> [2005-01-19 15:01]: > Hi all, > > I am newbie to ant and have one query. My application has a new > menu.This menu creates a build.xml Ant file. Now, when this menu is > invoked, its action should call Ant build, so that the build.xml will > do what is necessa

Re: how to invoke ant via java

2005-01-19 Thread Maik Dobryn
Hi vivek, have a look at the following class. Best regards, Maik import java.io.File; import org.apache.tools.ant.*; public class AntExecuterImpl { private String buildFileName; private String executeTarget; private String buildDir = ""; private String property = ""; public

RE: how to invoke ant via java

2005-01-19 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Follow the whole thread. You might find some usefull information. http://marc.theaimsgroup.com/?l=ant-user&m=107668689014077&w=2 HTH - Luis -Original Message- From: softgnostics k [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 12:22 PM To: user@ant.apache.org Subject: how to

Re: how to invoke ant via java

2005-01-19 Thread Rhino
Have you considered using Eclipse, which is a great freeware IDE with Eclipse already built in, rather than trying to "roll your own"? Or do you *want* to re-invent the wheel? Rhino - Original Message - From: "softgnostics k" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 19, 2005 3:0

RE: how to invoke ant via java

2005-01-19 Thread Radha Sangal
I used Runtime.exec () to invoke ant -Original Message- From: softgnostics k [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 3:01 PM To: user@ant.apache.org Subject: how to invoke ant via java Hi all, I am newbie to ant and have one query. My application has a new menu.This