|
35 | 35 |
|
36 | 36 | <property name="core.files" value="jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js" />
|
37 | 37 |
|
38 |
| - <property description="YUI Compressor" name="yui-jar" value="${build.dir}/yuicompressor-2.4.2.jar" /> |
| 38 | + <property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" /> |
39 | 39 |
|
40 | 40 | <target name="deploy-release" depends="docs-download, concatenate, minify, copy, replace-version, prepend-header, zip" description="Release builder">
|
41 | 41 | </target>
|
|
112 | 112 | <mkdir dir="${min.folder}" />
|
113 | 113 | <delete dir="${min.folder}/i18n/" />
|
114 | 114 | <mkdir dir="${min.folder}/i18n/" />
|
115 |
| - |
| 115 | + |
116 | 116 | <apply executable="java" parallel="false">
|
117 |
| - <filelist dir="${dist.dir}/ui/" files="${concatenated}.js" /> |
118 | 117 | <fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
|
119 | 118 | <arg line="-jar" />
|
120 |
| - <arg path="${yui-jar}" /> |
121 |
| - <arg value="--charset" /> |
122 |
| - <arg value="UTF-8" /> |
123 |
| - <srcfile /> |
124 |
| - <arg line="-o" /> |
125 |
| - <mapper type="glob" from="*.js" to="${min.folder}/*.min.js" /> |
| 119 | + <arg path="build/google-compiler-20091218.jar" /> |
| 120 | + <arg value="--warning_level" /> |
| 121 | + <arg value="QUIET" /> |
| 122 | + <arg value="--js_output_file" /> |
126 | 123 | <targetfile />
|
| 124 | + <arg value="--js" /> |
| 125 | + <mapper type="glob" from="*.js" to="${min.folder}/*.min.js" /> |
127 | 126 | </apply>
|
128 |
| - <echo message="Minified ui/ built." /> |
129 |
| - |
130 |
| - <apply executable="java" parallel="false"> |
131 |
| - <filelist dir="${dist.dir}/ui/i18n/" files="${concatenated.i18n}.js" /> |
132 |
| - <fileset dir="${src.dir}/i18n/" includes="jquery.ui.*.js" /> |
| 127 | + |
| 128 | + <apply executable="java" parallel="false" verbose="true" dest="${dist.dir}"> |
| 129 | + <filelist dir="${dist.dir}/ui/" files="${concatenated}.js" /> |
133 | 130 | <arg line="-jar" />
|
134 |
| - <arg path="${yui-jar}" /> |
135 |
| - <arg value="--charset" /> |
136 |
| - <arg value="UTF-8" /> |
137 |
| - <srcfile /> |
138 |
| - <arg line="-o" /> |
139 |
| - <mapper type="glob" from="*.js" to="${min.folder}/i18n/*.min.js" /> |
| 131 | + <arg path="build/google-compiler-20091218.jar" /> |
| 132 | + <arg value="--warning_level" /> |
| 133 | + <arg value="QUIET" /> |
| 134 | + <arg value="--js_output_file" /> |
140 | 135 | <targetfile />
|
| 136 | + <arg value="--js" /> |
| 137 | + <mapper type="glob" from="${concatenated}.js" to="tmpmin" /> |
141 | 138 | </apply>
|
142 |
| - <echo message="Minified ui/i18n/ built." /> |
| 139 | + <concat destfile="${min.folder}/jquery-ui.min.js"> |
| 140 | + <filelist files="${src.dir}/jquery.ui.core.js, ${dist.dir}/tmpmin"/> |
| 141 | + <filterchain> |
| 142 | + <headfilter lines="9"/> |
| 143 | + </filterchain> |
| 144 | + </concat> |
| 145 | + <concat destfile="${min.folder}/jquery-ui.min.js" append="yes"> |
| 146 | + <filelist files="${dist.dir}/tmpmin"/> |
| 147 | + </concat> |
| 148 | + <delete file="${dist.dir}/tmpmin"/> |
| 149 | + |
| 150 | + <echo message="Minified ui/ built." /> |
143 | 151 | </target>
|
144 | 152 |
|
145 | 153 | <target description="Copy needed folders" name="copy">
|
|
0 commit comments