ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carter A. Thompson" <cart...@voxeo.com>
Subject RE: Calling Ant from a JSP page
Date Wed, 12 Sep 2001 20:04:02 GMT

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:RMassa@ea.com]
> Sent: Wednesday, September 12, 2001 11:44 AM
> To: 'ant-user@jakarta.apache.org'
> Cc: 'rmassa@quarium.com'
> Subject: Calling Ant from a JSP page
> 
> 
> Has anyone successful called Ant from a JSP page?
> 
> thanks
> 
> ray

Mime
View raw message