Skip to content

Groovlets causing "The declared package "" does not match the expected package" warning #492

@gregg-saffell

Description

@gregg-saffell

I think the fix for "No warning for source unit with missing package statement #473" is causing problems for projects with groovlets. Very recently, Eclipse Oxygen 2 with v 3.0.0 of the plugin started showing warnings like the following for all of the .groovy files I have under webApplication/WEB-INF: "The declared package "" does not match the expected package "webApplication.WEB-INF.toolDelete" Because these files are "groovlets," they are not supposed to have a package name. They are scripts that get compiled by groovy.servlet.GroovyServlet.

I looked for a way to tell the plugin to treat any .groovy file under webApplication/WEB-INF as scripts but I could not figure out what to add to the "Groovy Script Folder" section of the Groovy Preferences panel.

Thanks in advance!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions