On Wed, Aug 31, 2011 at 8:30 PM, gazetaj <[email protected]> wrote:
> I am new to the tomcat plugin and I have a few (perhaps basic) questions
>
> First I am trying to run a gradle build from within Eclipse (Gradle Plugin
> in STS) my build is using the tomcat plugin - I have set up the gradle as a
> outside tool (I may not need this) I set up a section on my build to set
> alternative httpPort, Daemon, stopKey and StopPort.
>
> tomcatRun{
> daemon = true
> httpPort = 9090
> stopPort = 8009
> stopKey = 'G'
> }
>
> When running tomcatRun - gradle says tomcat is running on port 9090 - but I
> can't seem to find a tomcat instance running - What am I missing?
>
It may not be a tomcat process.
Linux: netstat -plnt | grep \:9090
Windows: netstat -an - look for a port that has state LISTENING on :9090.
netstat on Windows also has a parameter (might be -b, but check the usage
/?) to show the PID.
>
> What are valid stopkeys - or key combination?
>
https://github.com/bmuschko/gradle-tomcat-plugin -> Convention properties
stopKey: The key to pass to Tomcat when requesting it to stop (defaults to
null).
>
> How do I setup an debug session with the embedded tomcat? is it possible?
> If
> not what are the means to debug an application running on it?
>
Would need to pass the regular debug arguments to the jvm, often via jvmArgs
to the tomcat instance, not 100% sure on if / how arguments are passed to
the tomcat plugin / war plugin:
jvmArgs
['-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y','-Xdebug','-Xnoagent','-Djava.compiler=NONE']
Otherwise, you could just configure the logging library and use the console.
>
>
>
>
>
>
> -----
> Thank you.
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Tomcat-plugin-questions-tp4755390p4755390.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
Brett Cave
Jemstep, Inc
www.jemstep.com