You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
This function always returns false. Several years ago, this code was refactored to add the if condition (in this commit; line: [old]-97 [new]-111). In the original code, the webXml.exists() was the last line of the function, and thus acted as a return value. However, once moved to inside an if-block, this auto return no longer works. Thus, this function always returns false. A manual return needs to be added to this line.
Fix: return webXml.exists()
The text was updated successfully, but these errors were encountered:
@yurelle Just as a heads up: I am asking because I won't have the time to look into it soon. If you have an urgent need for the bug to be fixed then you'll need to provide a pull request.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
gradle-tomcat-plugin/plugin/src/main/groovy/com/bmuschko/gradle/tomcat/tasks/TomcatRun.groovy
Line 116 in c103bf4
This function always returns false. Several years ago, this code was refactored to add the if condition (in this commit; line: [old]-97 [new]-111). In the original code, the
webXml.exists()
was the last line of the function, and thus acted as a return value. However, once moved to inside an if-block, this auto return no longer works. Thus, this function always returns false. A manual return needs to be added to this line.Fix:
return webXml.exists()
The text was updated successfully, but these errors were encountered: