<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7706263886938764723</id><updated>2011-04-22T00:47:29.971+07:00</updated><category term='yuicompressor'/><category term='ant'/><category term='javascript'/><title type='text'>Shane Fox's Blog</title><subtitle type='html'>Programming related stuff.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shanefox.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7706263886938764723/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shanefox.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Shane Fox</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7706263886938764723.post-8438018387971802580</id><published>2008-02-09T18:52:00.000+07:00</published><updated>2008-02-09T20:40:15.799+07:00</updated><title type='text'>Modifying HTML/JSP Files with Ant</title><summary type='text'>After compressing and concatenating your javascript files with YUI Compressor like I showed last week, you will probably want to have your build process modify your html/jsp files to point to them. To do this you can use an Ant task called replaceregexp.Here is an example:1. First modify your html so that it looks something like this:&lt;html&gt;&lt;head&gt;    &lt;!--@@myjs.start--&gt;    &lt;script type="text/</summary><link rel='replies' type='application/atom+xml' href='http://shanefox.blogspot.com/feeds/8438018387971802580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7706263886938764723&amp;postID=8438018387971802580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7706263886938764723/posts/default/8438018387971802580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7706263886938764723/posts/default/8438018387971802580'/><link rel='alternate' type='text/html' href='http://shanefox.blogspot.com/2008/02/modifying-htmljsp-files-with-ant.html' title='Modifying HTML/JSP Files with Ant'/><author><name>Shane Fox</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7706263886938764723.post-1052543860519870047</id><published>2008-02-03T13:15:00.000+07:00</published><updated>2008-02-03T17:05:00.222+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='yuicompressor'/><category scheme='http://www.blogger.com/atom/ns#' term='ant'/><title type='text'>Building Javascript with Ant and YUI Compressor</title><summary type='text'>I recently spent some time wrestling with Ant and YUI Compressor.What I wanted to do was take a group of js files and run them through the compressor, and then append them into a single file in a specific order.Here is what I did:&lt;apply executable="java" parallel="false"&gt;   &lt;filelist dir="WebContent/scripts"&gt;       &lt;file name="myFile1.js" /&gt;       &lt;file name="myFile2.js.js" /&gt;       &lt;file name="</summary><link rel='replies' type='application/atom+xml' href='http://shanefox.blogspot.com/feeds/1052543860519870047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7706263886938764723&amp;postID=1052543860519870047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7706263886938764723/posts/default/1052543860519870047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7706263886938764723/posts/default/1052543860519870047'/><link rel='alternate' type='text/html' href='http://shanefox.blogspot.com/2008/02/building-javascript-with-ant-and-yui.html' title='Building Javascript with Ant and YUI Compressor'/><author><name>Shane Fox</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
