dev-list - Calling Ant within a servlet/webapp

2006-08-16 Thread Marc Farrow
ntThread().getContextClassLoader()); // project.setCoreLoader(null); // project.setCoreLoader(this.getClass().getClassLoader()); // project.setCoreLoader(Thread.currentThread ().getContextClassLoader().getParent()); project.execute("dist"); } catch (Exception e) { throw new RuntimeException(e); } finally { project = null; buildfile = null; } -- Marc Farrow

Re: dev-list - Calling Ant within a servlet/webapp

2006-08-16 Thread Marc Farrow
es the same thing that you are trying to do here (kick off ant from the web). If you do need to do this, you might want to check the code in their open source version for how they handle their classloaders. On Wednesday, August 16, 2006, at 08:27AM, Marc Farrow < [EMAIL PROTECTED]> wro

Re: dev-list - Calling Ant within a servlet/webapp

2006-08-16 Thread Marc Farrow
en source version which you can hack up, but it seems > like it does the same thing that you are trying to do here (kick off ant > from the web). If you do need to do this, you might want to check the > code in their open source version for how they handle their classloaders. > >

Re: dev-list - Calling Ant within a servlet/webapp

2006-08-17 Thread Marc Farrow
Anyone have any clues about adding items to the general classpath? What about even just adding classpath entries without a target (such as ) On 8/16/06, Marc Farrow <[EMAIL PROTECTED]> wrote: I checked out the link. Anthill is just "spawning" a process to run the Ant Ex

Re: dev-list - Calling Ant within a servlet/webapp

2006-08-18 Thread Marc Farrow
Because the build files are not maintained by us. We just use them. On 8/17/06, Kev Jackson <[EMAIL PROTECTED]> wrote: On 16 Aug 2006, at 19:26, Marc Farrow wrote: > I have some servlet and I am trying to call an Ant script within > the class > to compile a "project"