The YUI Library is a set of tools and controls that are written in JavaScript to create rich web interactive applications using DOM scripts, DHTML, AJAX, and other technologies. YUI is based on the BSD protocol and is free of charge for all usage methods. The YUI project includes the YUI Library and two creation tools: today I have studied the YUI yahoo open-source framework, and I feel very fierce.
As a result, I have implemented an ant implementation of YUI. many implementations of bat on the Internet allow me to develop a unique article about ant implementation. if this article is reproduced, it indicates the author and website
Copyright: Mr. chen
The specific operations are as follows:
Official website:
Yuicompressor-2.4.6.jar http://yuilibrary.com/downloads/#yuicompressor
YUIAnt. jar http://www.ubik-ingenierie.com/miscellanous/YUIAnt/
The specific code is as follows:
#css work dir commonCss.dir = css #js work dir commonJs.dir = js #build temp dir output.temp.dir = build #output files in the directory output.dir = ${output.temp.dir}_output #environment needs lib liblib = lib <?xml version="1.0" encoding="UTF-8"?>
@echo off echo ################################################ echo ##########Tool Compress the js and css########## echo ################################################ echo Please make sure your css and js in the css'directory and js'directory. echo If sure,please enter any button to continue the tool. pause call ant -buildfile compress.xml compress>build.log echo compress end pause
I can download related files. if you feel good, leave a message.