Pages

Showing posts with label Gradle. Show all posts
Showing posts with label Gradle. Show all posts

Saturday, November 17, 2012

Gradle jettyRun debug

To start gradle jettyRun in debug mode, follow the steps below.

Set the GRADLE_OPTS as shown in the screen

$ export GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n"
$ gradle jettyRun

Start the jetty server

Jetty server started

Open the debug configuration settings in Eclipse
Click on the debug button to start debugger

Set the breakpoints
Call the methods and debug


Set the debug points in your code and open the URL

http://localhost:9999/komliprime-trafficking-service/api/strategi?authtoken=6991a70eb121f3f623ebc2567927fef5


Friday, April 27, 2012

Run jetty on a specific port using Gradle

I usually start jetty using Gradle build file as given below, but it will run it on HTTP port 8080
gradle jettyRun

But to specify user defined port use -DhttpPort as given below.
gradle jettyRun -DhttpPort=9999

Know more.