Main project has following resource:
public interface MyClientBundle extends ClientBundle {
@Source("./style.css")
MyCssResource style();
}
And there is also 'style.css' file in the same package.
In child project gwt module inherits main's project gwt module and actually doesn't do anything else, but I have gwt compilation error while compiling child project to WAR:
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Scanning for additional dependencies: jar:file:/D:/work/.m2/repository/com/mypackage/1.0.1-SNAPSHOT/main-project-1.0.1-SNAPSHOT.jar!/com/mypackage/client/ClientFactoryImpl.java
[INFO] Computing all possible rebind results for 'com.mypackage.client.ui.res.MyClientBundle'
[INFO] Rebinding com.mypackage.client.ui.res.MyClientBundle
[INFO] Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO] Preparing method style
[INFO] Finding resources
[INFO] [ERROR] Resource ./style.css not found. Is the name specified as Class.getResource() would expect?
[INFO] [ERROR] Errors in 'jar:file:/D:/work/.m2/repository/com/mypackage/1.0.1-SNAPSHOT/main-project-1.0.1-SNAPSHOT.jar!/com/mypackage/client/ClientFactoryImpl.java'
[INFO] [ERROR] Line 50: Failed to resolve 'com.mypackage.client.ui.res.MyClientBundle' via deferred binding
[INFO] [ERROR] Cannot proceed due to previous errors
The only solution I found is to COPY 'file.css' to child project resources in the same package as MyClientBundle has. But this is dirty workaround cause when 'file.css' file changes then I need to copy it again and again... Does anyone have any solution for this ?
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gat1djdaRyEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment