Hello,
while building a GWT application I get these errors:
[INFO] Compiling module msm.app.bcs.Application
[INFO] Computing all possible rebind results for
'msm.lib.acs.awi.client.res.Resources'
[INFO] Rebinding msm.lib.acs.awi.client.res.Resources
[INFO] Invoking generator
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO] Preparing method css
[INFO] Finding resources
[INFO] [ERROR] Resource std.css not found. Is the name
specified as ClassLoader.getResource() would expect?
[INFO] Preparing method help
[INFO] Finding resources
[INFO] [ERROR] Resource Help.png not found. Is the name
specified as ClassLoader.getResource() would expect?
The missing resources std.css and Help.png are part of a jar library used
by the application.
They are referenced by a ClientBundle:
Resources.java: // references the resources:
- Help.png
- std.css
The jar file is built using a pom.xml, which adds the sources like this:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>msm/lib/acs/awi/**/*.java</include>
<include>msm/lib/acs/**/*.gwt.xml</include>
</includes>
</resource>
</resources>
</build>
As you can see, only *.java and *..gwt.xml files are included, but no *.css
or *.png files.
But how do you include them properly? Should I add an include statement in
the pom.xml above? Or should the resources be placed at another location? I
think it's good to have them near the ClientBundle java file.
How do you do this?
Thanks
Magnus
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.