tag:blogger.com,1999:blog-77062638869387647232024-03-08T17:45:09.288+07:00Shane Fox's BlogProgramming related stuff.Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7706263886938764723.post-84380183879718025802008-02-09T18:52:00.000+07:002008-02-09T20:40:15.799+07:00Modifying HTML/JSP Files with AntAfter 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:<html><head> <!--@@myjs.start--> <Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7706263886938764723.post-10525438605198700472008-02-03T13:15:00.000+07:002008-02-03T17:05:00.222+07:00Building Javascript with Ant and YUI CompressorI 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:<apply executable="java" parallel="false"> <filelist dir="WebContent/scripts"> <file name="myFile1.js" /> <file name="myFile2.js.js" /Unknownnoreply@blogger.com0