Skip to content

fix: Do not copy Tomcat configs file when <project>/.smarttomcat/<module>/conf folder is empty#141

Merged
yuezk merged 1 commit intozengkid:masterfrom
secretdeveloperisme:master
May 5, 2025
Merged

fix: Do not copy Tomcat configs file when <project>/.smarttomcat/<module>/conf folder is empty#141
yuezk merged 1 commit intozengkid:masterfrom
secretdeveloperisme:master

Conversation

@secretdeveloperisme
Copy link
Copy Markdown
Contributor

This pull request fixes an issue where the plugin does not check whether the config folder in the working project is empty before copying its contents to the Catalina base folder. If the folder exists but is empty, the plugin proceeds without copying the default Tomcat configuration files, which can lead to runtime errors such as "server.xml not found".

This update ensures that if the working project's config folder is empty, the plugin first populates it with the default Tomcat configuration before copying the files to the Catalina base folder. This prevents missing configuration errors during Tomcat startup.

@yuezk yuezk merged commit b65f00e into zengkid:master May 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants