diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-17 19:16:59 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-04-17 20:09:08 +0300 |
commit | cdcdc115b79f0773c2d140e43f58cfe9cb4b1cdb (patch) | |
tree | c3bb8f44a3918c4e4a5e3db903d6cda5d070fd0e /server | |
parent | 4400b1b62587e74073aac7f3c60710ac535795a5 (diff) | |
download | vaadin-framework-cdcdc115b79f0773c2d140e43f58cfe9cb4b1cdb.tar.gz vaadin-framework-cdcdc115b79f0773c2d140e43f58cfe9cb4b1cdb.zip |
Build a minified version of vaadinPush.js in vaadin-push.jar (#11630)
* Replaced jquery and jquery.atmosphere.js with original, unmodified versions
* Added vaadinPush.js build target to ide.xml and push/build.xml
* Uses yuicompressor to compress the resulting push javascript
Change-Id: I59ba9c2bbf74e05d10325d38efdb106b638cd8e7
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/BootstrapHandler.java | 5 | ||||
-rw-r--r-- | server/src/com/vaadin/server/VaadinServlet.java | 5 |
2 files changed, 3 insertions, 7 deletions
diff --git a/server/src/com/vaadin/server/BootstrapHandler.java b/server/src/com/vaadin/server/BootstrapHandler.java index 80f678d9bd..ad491745dd 100644 --- a/server/src/com/vaadin/server/BootstrapHandler.java +++ b/server/src/com/vaadin/server/BootstrapHandler.java @@ -359,10 +359,7 @@ public abstract class BootstrapHandler extends SynchronizedRequestHandler { // Load client-side dependencies for push support fragmentNodes.add(new Element(Tag.valueOf("script"), "").attr( "type", "text/javascript").attr("src", - vaadinLocation + "jquery-1.7.2.rebased.js")); - fragmentNodes.add(new Element(Tag.valueOf("script"), "").attr( - "type", "text/javascript").attr("src", - vaadinLocation + "jquery.atmosphere.rebased.js")); + vaadinLocation + "vaadinPush.js")); } String bootstrapLocation = vaadinLocation + "vaadinBootstrap.js"; diff --git a/server/src/com/vaadin/server/VaadinServlet.java b/server/src/com/vaadin/server/VaadinServlet.java index 70e77b0b8a..9dc62808c7 100644 --- a/server/src/com/vaadin/server/VaadinServlet.java +++ b/server/src/com/vaadin/server/VaadinServlet.java @@ -507,9 +507,8 @@ public class VaadinServlet extends HttpServlet implements Constants { private boolean serveStaticResources(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { - // FIXME What does 10 refer to? String pathInfo = request.getPathInfo(); - if (pathInfo == null || pathInfo.length() <= 10) { + if (pathInfo == null) { return false; } @@ -907,7 +906,7 @@ public class VaadinServlet extends HttpServlet implements Constants { protected boolean isStaticResourceRequest(HttpServletRequest request) { String pathInfo = request.getPathInfo(); - if (pathInfo == null || pathInfo.length() <= 10) { + if (pathInfo == null) { return false; } |