facebook

ME4S 8.6 M2 Dash in Project Name causes errors in GWT code

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #310072 Reply

    Glen Ihrig
    Member

    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

    #310098 Reply

    Heflin Hogan
    Member

    Hi Glen,

    This has been fixed for GA. We no longer use project names in generated packages.

    Regards,
    Heflin

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: ME4S 8.6 M2 Dash in Project Name causes errors in GWT code

You must be logged in to post in the forum log in