一个ClientBundle工作正常,在我的主要项目:com.example.project.client.Bundle
GWT ClientBundle找不到图像
在我的图书馆另一个ClientBundle编译成一个罐子里就好了:com.example.library.client.Bundle
编译我的项目时,它依赖于库失败:
[ERROR] Errors in 'jar:file:/C:/work/library.jar!/com/example/library/client/Bundle.java'
[ERROR] Line 10: Failed to resolve 'com.example.library.client.Bundle' via deferred binding
我检查JAR库和图像文件在/com/example/library/client/
因为他们在图书馆的来源。有一些窍门吗?我试过用@ClientBundle.Source("com/example/library/client/icon.gif")
和@ClientBundle.Source("icon.gif")
引用图像,两者都允许库编译文件,但在编译依赖项目时失败。