0

I am using UI binder for my GWT UI file and I am providing the relative path to load the css file which present in other directory but eclipse is showing the file is missing. Could you please help me how to fix that issue.

<ui:style src="../../../../public/css/sample.css"/>

Location of Ui file project/src/main/java/com/sample/gwt/client/a/b/c/d/view/e/f.ui.xml

Location of css file project/src/main/java/com/sample/gwt/client/a/b/public/css/sample.css

I can see the css file at that location but eclipse is unable to find the file.

4

1 に答える 1

0

Eclipse ではキャッシングの問題がよく発生します。通常の回避策は次のとおりです。

生成された .java ファイルをダブルクリックして開き、ファイルが同期していない場合は F5 を押します。

うまくいかない場合は、gwtUnitCache フォルダーをクリアします。

うまくいかない場合は、残りのターゲット フォルダーをクリアします。

于 2013-10-10T11:16:02.217 に答える