ME4S 8.6 M2 User error + Bug? Dash in Project Name causes errors in scaffolded GWT code
ME4S 8.6 M2
Mac OS X 10.5.8
1. Create a Project with a dash in the name e.g. CustomerBilling-GWT
2. Scaffold a GWT project following the GWT tutorial at:
http://www.skywayperspectives.org/documentation/me4s86/html/ME4STutorialScaffoldingGWT/m4sescaffoldinggwtarticle.html
3. The completed project will generate but logs errors similar to:
Resource file cancelAction.png is missing (expected at gwt/customerbilling_gwt/common/client/resources)
CommonResources.java /CustomerBilling-GWT/generated/gwt/customerbilling_gwt/common/client/resources
line 25 Google Web Toolkit ClientBundle Problem
The problem is that in some, but not all cases the dash ‘-‘ in the project name is being replaced with an underscore ‘_’. The errors are caused by the generated code pointing to the wrong folder.
These two folders are created with some generated content in each:
.../CustomerBilling-GWT/generated/gwt/customerbilling-gwt vs.
.../CustomerBilling-GWT/generated/gwt/customerbilling_gwt
The folder name change should be consistent, perhaps better still would be to check project names for invalid java class names in the early stages of scaffolding.
Regards,
Glen