I'm sure there are ways to do this (take a look at some IDE integration sources
for examples.) If worse came to worse, you can always call the main method
yourself - that is all the VM does anyhow.
>
> Ray,
>
> That's a good question and I'm sorry I don't have the answer to that.
> It sounds plausible and if you do figure out a way to instantiate an
> Ant Object let me know. I haven't tried that yet.
>
> Cheers,
>
> Carter.
>
> > -----Original Message-----
> > From: Massa, Ray [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 12, 2001 1:30 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: Calling Ant from a JSP page
> >
> >
> > Thanks for the help Carter!
> >
> > So to the best of your knowledge, Ant can only be called using Runtime
> > commands? Meaning I can't instantiate an Ant Object and call a build
> > command?
> >
> > Ray
> >
> > -----Original Message-----
> > From: Carter A. Thompson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 12, 2001 1:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Calling Ant from a JSP page
> >
> >
> >
> > I have a JSP page that runs a Perl script that calls Ant. In
> > your case I suppose you could just substitute the perl script for
> > an Ant call directly.
> >
> > In your JSP Page use something like this:
> >
> > Process myProc = Runtime.getRuntime().exec("cmd /c ant");
> >
> > or for Unix use one of the various shells at your disposal:
> >
> > Process myProc = Runtime.getRuntime().exec("sh ant");
> >
> > Hope this helps.
> >
> > Cheers,
> >
> > Carter.
> >
> > > -----Original Message-----
> > > From: Massa, Ray [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, September 12, 2001 11:44 AM
> > > To: '[EMAIL PROTECTED]'
> > > Cc: '[EMAIL PROTECTED]'
> > > Subject: Calling Ant from a JSP page
> > >
> > >
> > > Has anyone successful called Ant from a JSP page?
> > >
> > > thanks
> > >
> > > ray