Weird error from the Eclipse GWT plugin when having a separate source folder for resources
Asked Answered
B

1

7

I have an Eclipse GWT project with two source folders: One for source code and one for resources. This should and does work fine, but nevertheless Eclipse shows the following error message:

Resource file style.css is missing (expected at com.example.gwt.client)

If have the a class Resources in my source code source folder:

package com.example.gwt.client;

import com.google.gwt.resources.client.*;

interface Resources extends ClientBundle {
    @Source("style.css")
    Style style();
}

The references CSS file is in the same package in the source folder I use for resources.

It's not really a problem, since it definitely works, but I would like to get rid of the error message in any case, it's making me nervous. Any ideas?

Breadwinner answered 27/2, 2011 at 6:45 Comment(0)
P
8

See this GWT issue. Configure the resources folder as a source folder in Eclipse and the errors in the editor will go away.

Promising answered 27/2, 2011 at 19:20 Comment(2)
Maven automatically added it as a source folder, that didn't help. However, removing, adding it again and then updating Maven project information did the trick.Breadwinner
Also be sure that exclusion patterns is empty for resources pathKerin

© 2022 - 2024 — McMap. All rights reserved.