Re: Best way to get automatic JavaScript minification in Restlet

2010-11-17 Thread Thierry Boileau
Hello Tim, thanks a lot for having entered an issue. This has been fixed (I've checked with your code) a few minutes earlier, see http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2682395 . The remaining size of a target buffer was not taken into account when filling it. Best

Re: Best way to get automatic JavaScript minification in Restlet

2010-11-12 Thread Tim Peierls
I just filed issue 1198 which has one file Java program that demonstrates the problem. http://restlet.tigris.org/issues/show_bug.cgi?id=1198 http://restlet.tigris.org/issues/show_bug.cgi?id=1198--tim On Mon, Nov 8, 2010 at 9:03 PM, Tim Peierls t...@peierls.net wrote: On Wed, Jul 28, 2010 at

Re: Best way to get automatic JavaScript minification in Restlet

2010-11-08 Thread Tim Peierls
On Wed, Jul 28, 2010 at 6:27 PM, Tim Peierls t...@peierls.net wrote: I wrote a Restlet Filter to minify application/x-javascript resources in afterHandle (using JSMin now, but I'll probably switch to YUI Compressor). As of 2.1-M1 (JSE edition), and using the internal connector only, I'm

RE: Best way to get automatic JavaScript minification in Restlet

2010-08-31 Thread Jerome Louvel
://www.restlet.org/ http://www.restlet.o​rg Noelios Technologies ~ http://www.noelios.com/ http://www.noelios.com De : Thierry Boileau [mailto:thierry.boileau.noel...@gmail.com] Envoyé : vendredi 27 août 2010 16:21 À : discuss@restlet.tigris.org Objet : Re: Best way to get automatic

Re: Best way to get automatic JavaScript minification in Restlet

2010-08-31 Thread Tal Liron
http://www.noelios.com/ *De :* Thierry Boileau [mailto:thierry.boileau.noel...@gmail.com] *Envoyé :* vendredi 27 août 2010 16:21 *À :* discuss@restlet.tigris.org *Objet :* Re: Best way to get automatic JavaScript minification in Restlet Hello Tim, I'm sorry for my very late answer. You can

Re: Best way to get automatic JavaScript minification in Restlet

2010-08-30 Thread Thierry Boileau
Hello Tim, I'm sorry for my very late answer. You can also wrap the response's representation into a custom one that aims at applying the minification process. You can have a look at the Encoder filter, especially in the encode method which uses an EncodeRepresentation. Best regards, Thierry

Best way to get automatic JavaScript minification in Restlet

2010-07-28 Thread Tim Peierls
I wrote a Restlet Filter to minify application/x-javascript resources in afterHandle (using JSMin now, but I'll probably switch to YUI Compressor). But is that all I can do with it? It feels as though this should be plugged into the TunnelService, with ways to take requests for foo.min.js, say,

Re: Best way to get automatic JavaScript minification in Restlet

2010-07-28 Thread Tal Liron
I've handled it differently for Prudence: I create static unified/minifed files on-the-fly to be served via a Directory. If you request all.min.js, all .js files in that directory are unified (in alphabetical order) and minifed. The filter can detect if any of the source files has been

Re: Best way to get automatic JavaScript minification in Restlet

2010-07-28 Thread Tim Peierls
Perfect, thanks! --tim On Wed, Jul 28, 2010 at 7:43 PM, Tal Liron tal.li...@threecrickets.comwrote: I've handled it differently for Prudence: I create static unified/minifed files on-the-fly to be served via a Directory. If you request all.min.js, all .js files in that directory are unified