viktorthang / mgwt

Automatically exported from code.google.com/p/mgwt
Other
0 stars 0 forks source link

HTML5 Manifest module name problem #293

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create module named like com.mycompany.Mobile
2. Add linker to your gwt.xml file 

    <inherits name="com.googlecode.mgwt.linker.Linker" />
    <add-linker name="permutationmaplinker" />

 and MGWTHtml5ManifestServlet in web.xml

What is the expected output? What do you see instead?

I expect to see generated HTML5 manifest file when accessing application but It 
doesn't show. 

What version of the product are you using? On what operating system?
MGWT 1.1.2

Please provide any additional information below.

 Modules named with one word like "Mobile" work. but something like com.mycompany.Mobile does not. 

I debugged and found that error was at line 300 in 
Html5ManifestServletBase.java 
Pattern pattern = Pattern.compile("/([a-zA-Z0-9]+)\\.manifest$");

I fixed this like:
Pattern pattern = Pattern.compile("/([\\S]+)\\.manifest$");
this issue reported on groups:
https://groups.google.com/forum/?fromgroups=#!topic/mgwt/XW-cF4LXxfY

Original issue reported on code.google.com by nikola...@gmail.com on 27 Jan 2013 at 8:47

GoogleCodeExporter commented 8 years ago

Original comment by kurka.da...@gmail.com on 29 Jan 2013 at 7:09

GoogleCodeExporter commented 8 years ago
Closing off here since we are redoing offline support completly for 2.0

Original comment by kurka.da...@gmail.com on 9 Aug 2014 at 9:10