[英]Gradle gretty jetty not working in Debug
我正在使用Windows操作系統,JDK 1.7,Gradle 3.0,IDE Eclipse火星和碼頭8.1.5.v20120716。
注意:我也使用gretty插件
gretty {
port = http_port
host = '127.0.0.1'
contextPath = ''
classPath = sourceSets.main.resources.srcDirs
servletContainer = 'jetty9' //tomcat7 or tomcat8
httpPort = 8081
servicePort = 8082
statusPort = 8083
}
我嘗試過的所有選項的行為都相同,只是掛在端口5005語句上,甚至沒有加載應用程序。 我正在使用基於Spring注釋和類類型的初始化程序“ AbstractAnnotationConfigDispatcherServletInitializer”
我嘗試了以下選項。 appStartDebug,appRunDebug,jettyStartDebug和jettyRunDebug。
C:\project>echo %GRADLE_OPTS%
-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n
C:\project>gradle jettyStartDebug
Listening for transport dt_socket at address: 9999
Starting a Gradle Daemon, 10 busy and 19 stopped Daemons could not be reused, use --status for details
'5e5ca94'
:prepareInplaceWebAppFolder UP-TO-DATE
:createInplaceWebAppFolder UP-TO-DATE
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:prepareInplaceWebAppClasses UP-TO-DATE
:prepareInplaceWebApp UP-TO-DATE
:jettyStartDebug
Listening for transport dt_socket at address: 5005
請有人幫我解決這個問題。
從%GRADLE_OPTS%
刪除調試選項,然后執行
gretty {
debug = true
debugSuspend = false
debugPort = 9999
...
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.