File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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

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:

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

Joined: May 14, 2008
Posts: 5852

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:
subject: Using jetty in an ant project
It's not a secret anymore!