On Thursday, February 12, 2015 at 2:35:36 AM UTC+1, Ali Akhtar wrote: > > I have a maven layout, and the ui.xml file is in src/main/resources, in > the same package as the Java class. So I don't think that's the case here. > > Also the file does get picked up, it just requires an SDM restart to pick > up some of the changes. >
How do you launch SDM? If you're using the gwt-maven-plugin, it won't include src/main/resources (or other resource dirs) as resources could be filtered, and/or with inclusion/exclusion patterns and/or relocation. That means you have to run "mvn process-resources" to copy the resources to target/classes where they'll be picked up by GWT. Eclipse should do that automatically on file save IIRC. Alternatively, you can put your ui.xml et al. in src/main/java. Maybe the gwt-maven-plugin could be enhanced to detect the common case where resources are neither filtered nor relocated and automatically add them to the DevMode/CodeServer classpath. Patches welcome. > > On Thu, Feb 12, 2015 at 3:52 AM, 'Goktug Gokdogan' via GWT Contributors < > [email protected]> wrote: > >> In same cases, you can accidentally include of ui.xml files in your build >> that will make your regular compile work but SDM will not pick up the >> changes. This happens if the ui.xml file is in the classpath but not >> included as a resource in the gwt.xml file. I think if we notice that >> during compilation, we will print a warning about it. >> >> On Wed, Feb 11, 2015 at 4:12 AM, Ali Akhtar <[email protected]> wrote: >> >>> I'm using the snapshot build, so it might be a recent issue. I'm not >>> sure if I could've done anything in my project to cause this, I just have a >>> regular ui binder file / class. >>> >>> On Wed, Feb 11, 2015 at 4:50 PM, Jens <[email protected]> wrote: >>> >>>> We are currently using a GWT trunk build from 5. Jan 2015 and don't see >>>> this issue. So either a recent commit causes that behavior or your project >>>> setup is broken. >>>> >>>> -- J. >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "GWT Contributors" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "GWT Contributors" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] >>> . >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-kgLSrxPOUTUM8NoEUg%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-kgLSrxPOUTUM8NoEUg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "GWT Contributors" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA2LTfZNq3%3DVMFFhE_vnSTmiWh3YvP9-nKFS2F7QSuHgQg%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA2LTfZNq3%3DVMFFhE_vnSTmiWh3YvP9-nKFS2F7QSuHgQg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/bc0e0f1e-fd91-40c5-82fc-d18d1f0debde%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
