Re: SimpleAppCacheLinker

2011-08-24 Thread Philip Rogers
The SimpleAppCacheLinker found in the mobile web app is very simple and 
caches all permutations of the JavaScript output in the app cache manifest 
file. The proper way to handle this is to do selection server-side and only 
deliver the relevant app cache manifest file with just a single JS 
artifact... until that functionality is available, I don't think the app 
cache linker is ready for inclusion in GWT.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5enH-FM3Fa8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



SimpleAppCacheLinker

2011-08-23 Thread StrongSteve
Why is the class SimpleAppCacheLinker found in the mobile web app
sample not part of GWT 2.4 beta or GWT 2.4 RC1?

Greetings
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[gwt-contrib] Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rjrjr

Reviewers: rchandia,

Description:
Move the SimpleAppCacheLinker out to sample land, it's not quite ready.


Please review this at http://gwt-code-reviews.appspot.com/1447813/

Affected files:
  D dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java
  D dev/core/test/com/google/gwt/core/linker/SimpleAppCacheLinkerTest.java
  M samples/mobilewebapp/README-MAVEN.txt
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml
  A  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java
  A  
samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java

  M user/test/com/google/gwt/core/ext/LinkerSuite.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rjrjr

Ready for review.

http://gwt-code-reviews.appspot.com/1447813/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rchandia

LGTM
On 2011/06/01 18:51:58, rjrjr wrote:

Ready for review.




http://gwt-code-reviews.appspot.com/1447813/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r10255 committed - Move the SimpleAppCacheLinker out to sample land, it's not quite ready...

2011-06-01 Thread codesite-noreply

Revision: 10255
Author:   rj...@google.com
Date: Wed Jun  1 09:26:16 2011
Log:  Move the SimpleAppCacheLinker out to sample land, it's not quite  
ready.


Review at http://gwt-code-reviews.appspot.com/1447813

Review by: rchan...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10255

Added:
 /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml

 /trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java

 /trunk/samples/mobilewebapp/src/test
 /trunk/samples/mobilewebapp/src/test/java
 /trunk/samples/mobilewebapp/src/test/java/com
 /trunk/samples/mobilewebapp/src/test/java/com/google
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core
 /trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker
  
/trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java

Deleted:
 /trunk/dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java
  
/trunk/dev/core/test/com/google/gwt/core/linker/SimpleAppCacheLinkerTest.java

Modified:
 /trunk/samples/mobilewebapp/README-MAVEN.txt
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/linker/AppCacheLinker.java

 /trunk/user/test/com/google/gwt/core/ext/LinkerSuite.java

===
--- /dev/null
+++  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml	 
Wed Jun  1 09:26:16 2011

@@ -0,0 +1,22 @@
+!-- 
--
+!-- Copyright 2011 Google  
Inc. --
+!-- Licensed under the Apache License, Version 2.0 (the License);  
you--
+!-- may not use this file except in compliance with the License. You  
may   --
+!-- may obtain a copy of the License  
at--
+!-- 
--
+!--  
http://www.apache.org/licenses/LICENSE-2.0 --
+!-- 
--
+!-- Unless required by applicable law or agreed to in writing,  
software--
+!-- distributed under the License is distributed on an AS IS  
BASIS,  --
+!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express  
or--
+!-- implied. License for the specific language governing permissions  
and   --
+!-- limitations under the  
License. --

+
+!-- Types and resources required to support primitive system  
operation.--
+!-- 
--
+!-- Types from this module are visible to and imported into user  
code. --
+!-- Every module should directly or indirectly inherit this  
module.--
+!-- 
--

+module
+  inherits name=com.google.gwt.core.Core /
+/module
===
--- /dev/null
+++  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java	 
Wed Jun  1 09:26:16 2011

@@ -0,0 +1,183 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.sample.core.linker;
+
+import com.google.gwt.core.ext.LinkerContext;
+import com.google.gwt.core.ext.TreeLogger;
+import com.google.gwt.core.ext.UnableToCompleteException;
+import com.google.gwt.core.ext.linker.AbstractLinker;
+import com.google.gwt.core.ext.linker.Artifact;
+import com.google.gwt.core.ext.linker.ArtifactSet;
+import com.google.gwt.core.ext.linker.EmittedArtifact;
+import com.google.gwt.core.ext.linker.LinkerOrder;
+import com.google.gwt.core.ext.linker.LinkerOrder.Order;
+import com.google.gwt.core.ext.linker.impl.SelectionInformation;
+
+import java.util.Arrays;
+import java.util.Date;
+
+/**
+ * Linker for public path resources in the Application Cache.
+ * p
+ * strongWarning/strongThis linker sends

[gwt-contrib] Re: Move the SimpleAppCacheLinker out to sample land, it's not quite ready. (issue1447813)

2011-06-01 Thread rjrjr

r10255

http://gwt-code-reviews.appspot.com/1447813/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: SimpleAppCacheLinker missing?

2011-05-18 Thread dudi
Thank you all!
Great tip from Stefan

I couldn't manage to compile the MobileWebApp project on Eclipse, so
the UiBinder problem is probably a result of that.
GWT designer doesn't give me a stack trace,
just that:

GWT Designer can't load a module because of error in gwt.xml module
description, incorrect resource which requires processing with GWT
generator or by some other configuration error.

Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors.

This log has the following error messages:

{0}

After several hours on that I've pretty much gave up.
If anyone has managed to successfully import the current MobileWebApp
example to Eclipse - It'll be great to share a link  :)

Thanks!
D.

On May 18, 12:55 am, Eric Clayberg clayb...@google.com wrote:
 We need to see the complete stack trace and ideally the
 Eclipse .metadata .log file showing that exception.

 On May 16, 2:49 am,dudidudi.mam...@gmail.com wrote:









  3) I didn't manage to view the ui.xml inGWTDesigner, I get an error
  screen: ...error loading module: error ingwt.xml module description,
  incorrect resource which requires processing withGWTgenerator or by
  some other configuration erro

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SimpleAppCacheLinker missing?

2011-05-17 Thread StrongSteve
Do not know why, but the SimpleAppCacheLinker is missing in GWT 2.4.
I was searching for it, too. ;)
Seems we are too early to test this new feature!

It can be found on the SVN repository but I am kinda stuck on adding
it to my project.
I mean I copied, compiled the source code, run a build, everything
works fine but no
appcache.nocache.manifest is being generated. :(

Any adivice?

Greetings
Stefan

On 16 Mai, 08:49, dudi dudi.mam...@gmail.com wrote:
 Hey,

 please help a newb :)

 I'm trying to follow the MobileWebApp example:
 [http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk
 %2Fsamples%2Fmobilewebapp]
 from i/o 2011
 [http://www.youtube.com/user/GoogleDevelopers#p/u/10/N1aCo5LvMf8]

 I have so many problems, prob because I didn't manage to compile gwt
 on windows.

 1) did anyone managed to turn MobileWebApp  into an eclipse project on
 windows?

 2)SimpleAppCacheLinkeris not available in the gwt jar (checked gwt
 2.3, 2.4) - any clue where to find it?

 3) I didn't manage to view the ui.xml in GWT Designer, I get an error
 screen: ...error loading module: error in gwt.xml module description,
 incorrect resource which requires processing with GWT generator or by
 some other configuration erro

 Any tip will be appreciated!
 Thanks,
 D.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SimpleAppCacheLinker missing?

2011-05-17 Thread StrongSteve
I was too quick to draw my conclusions.
I copied both the SimpleCacheAppLinker code as well as the
AppCacheLinker code to my project and now it works.

It works too if you append the annotation @Shareable to the class
SimpleCacheAppLinker.

Can anyone explain to me why? What is the purpose of this annotation?

Anyway - offline web apps rock!!! ;)

Greetings
Stefan

On 17 Mai, 13:11, StrongSteve swe.sta...@gmail.com wrote:
 Do not know why, but theSimpleAppCacheLinkeris missing in GWT 2.4.
 I was searching for it, too. ;)
 Seems we are too early to test this new feature!

 It can be found on the SVN repository but I am kinda stuck on adding
 it to my project.
 I mean I copied, compiled the source code, run a build, everything
 works fine but no
 appcache.nocache.manifest is being generated. :(

 Any adivice?

 Greetings
 Stefan

 On 16 Mai, 08:49, dudi dudi.mam...@gmail.com wrote:







  Hey,

  please help a newb :)

  I'm trying to follow the MobileWebApp example:
  [http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk
  %2Fsamples%2Fmobilewebapp]
  from i/o 2011
  [http://www.youtube.com/user/GoogleDevelopers#p/u/10/N1aCo5LvMf8]

  I have so many problems, prob because I didn't manage to compile gwt
  on windows.

  1) did anyone managed to turn MobileWebApp  into an eclipse project on
  windows?

  2)SimpleAppCacheLinkeris not available in the gwt jar (checked gwt
  2.3, 2.4) - any clue where to find it?

  3) I didn't manage to view the ui.xml in GWT Designer, I get an error
  screen: ...error loading module: error in gwt.xml module description,
  incorrect resource which requires processing with GWT generator or by
  some other configuration erro

  Any tip will be appreciated!
  Thanks,
  D.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SimpleAppCacheLinker missing?

2011-05-17 Thread Eric Clayberg
We need to see the complete stack trace and ideally the
Eclipse .metadata .log file showing that exception.

On May 16, 2:49 am, dudi dudi.mam...@gmail.com wrote:

 3) I didn't manage to view the ui.xml inGWTDesigner, I get an error
 screen: ...error loading module: error ingwt.xml module description,
 incorrect resource which requires processing withGWTgenerator or by
 some other configuration erro

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



SimpleAppCacheLinker missing?

2011-05-16 Thread dudi
Hey,

please help a newb :)

I'm trying to follow the MobileWebApp example:
[http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk
%2Fsamples%2Fmobilewebapp]
from i/o 2011
[http://www.youtube.com/user/GoogleDevelopers#p/u/10/N1aCo5LvMf8]

I have so many problems, prob because I didn't manage to compile gwt
on windows.

1) did anyone managed to turn MobileWebApp  into an eclipse project on
windows?

2) SimpleAppCacheLinker is not available in the gwt jar (checked gwt
2.3, 2.4) - any clue where to find it?

3) I didn't manage to view the ui.xml in GWT Designer, I get an error
screen: ...error loading module: error in gwt.xml module description,
incorrect resource which requires processing with GWT generator or by
some other configuration erro

Any tip will be appreciated!
Thanks,
D.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SimpleAppCacheLinker missing?

2011-05-16 Thread Juan Pablo Gardella
Past the stacktrace

2011/5/15 dudi dudi.mam...@gmail.com

 Hey,

 please help a newb :)

 I'm trying to follow the MobileWebApp example:
 [http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk
 %2Fsamples%2Fmobilewebapp]
 from i/o 2011
 [http://www.youtube.com/user/GoogleDevelopers#p/u/10/N1aCo5LvMf8]

 I have so many problems, prob because I didn't manage to compile gwt
 on windows.

 1) did anyone managed to turn MobileWebApp  into an eclipse project on
 windows?

 2) SimpleAppCacheLinker is not available in the gwt jar (checked gwt
 2.3, 2.4) - any clue where to find it?

 3) I didn't manage to view the ui.xml in GWT Designer, I get an error
 screen: ...error loading module: error in gwt.xml module description,
 incorrect resource which requires processing with GWT generator or by
 some other configuration erro

 Any tip will be appreciated!
 Thanks,
 D.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[gwt-contrib] Improving SimpleAppCacheLinker noise. (issue1438802)

2011-05-06 Thread rchandia

Reviewers: rjrjr,

Description:
Improving SimpleAppCacheLinker noise.


Please review this at http://gwt-code-reviews.appspot.com/1438802/

Affected files:
  M dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java


Index: dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java
===
--- dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java	 
(revision 9869)
+++ dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java	 
(working copy)

@@ -86,7 +86,8 @@
 }

 if (toReturn.find(SelectionInformation.class).isEmpty()) {
-  logger.log(TreeLogger.INFO, devmode: generating empty  + MANIFEST);
+  logger.log(TreeLogger.INFO, DevMode warning: Clobbering  +  
MANIFEST +  to allow debugging. 

+  + Recompile before deploying your app!);
   artifacts = null;
 }

@@ -161,9 +162,8 @@
 sb.append(NETWORK:\n);
 sb.append(*\n);

-logger.log(TreeLogger.INFO, Make sure you have the following
-+  attribute added to your landing page's html tag: html  
manifest=\

-+ context.getModuleFunctionName() + / + MANIFEST + \);
+logger.log(TreeLogger.INFO, Be sure your landing page's html tag  
declares a manifest:
++  html manifest= + context.getModuleFunctionName() + / +  
MANIFEST + \);


 // Create the manifest as a new artifact and return it:
 return emitString(logger, sb.toString(), MANIFEST);


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Improving SimpleAppCacheLinker noise. (issue1438802)

2011-05-06 Thread rchandia

OK, I promise I'll try to fix my rietveld reviews. Please use the
Unified diff view for the time being.

On 2011/05/06 19:01:27, rchandia wrote:



http://gwt-code-reviews.appspot.com/1438802/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Improving SimpleAppCacheLinker noise. (issue1438802)

2011-05-06 Thread Ray Ryan
LGTM

On Fri, May 6, 2011 at 12:13 PM, rchan...@google.com wrote:

 OK, I promise I'll try to fix my rietveld reviews. Please use the
 Unified diff view for the time being.


 On 2011/05/06 19:01:27, rchandia wrote:



 http://gwt-code-reviews.appspot.com/1438802/


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] [google-web-toolkit] r10158 committed - Improving SimpleAppCacheLinker noise....

2011-05-06 Thread codesite-noreply

Revision: 10158
Author:   rchan...@google.com
Date: Fri May  6 09:30:06 2011
Log:  Improving SimpleAppCacheLinker noise.

Review at http://gwt-code-reviews.appspot.com/1438802

Review by: rj...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10158

Modified:
 /trunk/dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java

===
---  
/trunk/dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java	 
Wed May  4 09:12:17 2011
+++  
/trunk/dev/core/src/com/google/gwt/core/linker/SimpleAppCacheLinker.java	 
Fri May  6 09:30:06 2011

@@ -86,7 +86,8 @@
 }

 if (toReturn.find(SelectionInformation.class).isEmpty()) {
-  logger.log(TreeLogger.INFO, devmode: generating empty  + MANIFEST);
+  logger.log(TreeLogger.INFO, DevMode warning: Clobbering  +  
MANIFEST +  to allow debugging. 

+  + Recompile before deploying your app!);
   artifacts = null;
 }

@@ -161,9 +162,8 @@
 sb.append(NETWORK:\n);
 sb.append(*\n);

-logger.log(TreeLogger.INFO, Make sure you have the following
-+  attribute added to your landing page's html tag: html  
manifest=\

-+ context.getModuleFunctionName() + / + MANIFEST + \);
+logger.log(TreeLogger.INFO, Be sure your landing page's html tag  
declares a manifest:
++  html manifest= + context.getModuleFunctionName() + / +  
MANIFEST + \);


 // Create the manifest as a new artifact and return it:
 return emitString(logger, sb.toString(), MANIFEST);

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Improving SimpleAppCacheLinker noise. (issue1438802)

2011-05-06 Thread rchandia

Submitted as of r10158

http://gwt-code-reviews.appspot.com/1438802/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors