Before we look into more specifics you will have to download these two: 1. YUICompression jar from the Yahoo developer site: http://yuilibrary.com/download/yuicompressor/ 2. YUIAnt jar file from http://www.ubik-ingenierie.com/miscellanous/YUIAnt/ Place the YUIAnt.jar and YUICompression jar into the lib directory of the project. build.xml: <property name="tools.lib.dir" value="tools"/> <property name="jsmin.dir" value="jsmin"/> <target name="cleanJSMin" description="Remove all generated files."> <delete dir="${jsmin.dir}"/> </target> <target name="minify" depends="cleanJSMin" description="Minifiy a set of files"> <taskdef name="yuicompress" classname="com.yahoo.platform.yui.compressor.YUICompressTask"> <classpath> <pathelement path="${tools.lib.dir}/yuicompressor-2.4....
A blog about Software Development