3 rem *************************************************************************************
\r
4 rem Windows batch script to compress most of the Rico library using the YUI compressor
\r
5 rem Rico is Copyright 2005-2011 by Matt Brown and Richard Cowin
\r
6 rem For details, see the Rico web site at http://sourceforge.net/projects/openrico/
\r
7 rem *************************************************************************************
\r
9 set dest=..\ricoClient\js
\r
11 if exist yuicompressor-2.4.6.jar goto compress
\r
12 echo This script requires Java and the YUI compressor
\r
13 echo yuicompressor-2.4.6.jar should be placed in this directory before running the script.
\r
14 echo Download it from http://developer.yahoo.com/yui/compressor/
\r
17 rem *** Compress Javascript ***
\r
20 type ricoUI.js >all.js
\r
22 type ricoCalendar.js >>all.js
\r
23 type ricoColorPicker.js >>all.js
\r
24 type ricoDragDrop.js >>all.js
\r
25 type ricoSearch.js >>all.js
\r
26 type ricoTree.js >>all.js
\r
28 type ricoGridCommon.js >>all.js
\r
29 type ricoSimpleGrid.js >>all.js
\r
30 type ricoLiveGrid.js >>all.js
\r
31 type ricoLiveGridControls.js >>all.js
\r
32 type ricoLiveGridMenu.js >>all.js
\r
33 type ricoLiveGridAjax.js >>all.js
\r
34 type ricoLiveGridForms.js >>all.js
\r
36 type ricoLocale_en.js >>all.js
\r
38 rem Without line breaks = smallest file
\r
39 rem java -jar yuicompressor-2.4.6.jar -o %dest%\rico_min.js all.js
\r
41 rem With line breaks = slightly larger file, easier to debug
\r
42 java -jar yuicompressor-2.4.6.jar --line-break 0 -o %dest%\rico_min.js all.js
\r