aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Using jetty in an ant project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Using jetty in an ant project" Watch "Using jetty in an ant project" New topic
Author

Using jetty in an ant project

Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
I am trying to use Jetty with ant using these instructions: http://docs.codehaus.org/display/JETTY/Ant+Jetty+Plugin.

Jetty starts up ok but I still to make a few more adjustments:

* Increase JVM memory (set the -Xms, -Xmx, and -XX:MaxPermSize)
* Enable remote debugging

My ant task is defined as such:

target/myapp has everything it needs including the WEB-INF/lib and WEB-INF/classes folders.

So how can I increase memory and enable remote debugging with this set up?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5776
    
    7

As far as I can tell, the <jetty> task runs Jetty in the same JVM as Ant. If that is what you want, then you will have to increase the heap size used by Ant. If, however, you want to run Jetty in a separate JVM, use the <exec> or <java> tasks (make sure you set the fork option with the java task).


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using jetty in an ant project
 
Similar Threads
JSP Compilation using ANT
include directive
unable to create War using Ant
Pre Compiling jsp
BUILD FAILED in Build.xml