|
258 | 258 | <echo message="All trailing spaces removed." /> |
259 | 259 | </target> |
260 | 260 |
|
261 | | - <target name="checksums"> |
| 261 | + <target name="googlecdn"> |
262 | 262 | <delete dir="google" /> |
263 | 263 | <mkdir dir="google" /> |
264 | | - <copy file="dist/jquery-ui-1.9pre/version.txt" todir="google" /> |
265 | | - <copy file="dist/jquery-ui-1.9pre/AUTHORS.txt" todir="google" /> |
266 | | - <copy file="dist/jquery-ui-1.9pre/GPL-LICENSE.txt" todir="google" /> |
267 | | - <checksum> |
268 | | - <fileset dir="google" /> |
269 | | - </checksum> |
270 | | - <concat destfile="google/MANIFEST"> |
271 | | - <fileset dir="google" includes="**/*.MD5" /> |
272 | | - </concat> |
273 | | - <!-- |
274 | | - <for param="file"> |
275 | | - <path><fileset dir="google" includes="**/" excludes="**/*.MD5" /></path> |
276 | | - <sequential> |
277 | | - <checksum file="@{file}" /> |
278 | | - </sequential> |
279 | | - </for> |
| 264 | + <copy todir="google"> |
| 265 | + <fileset dir=".." includes="AUTHORS.txt, GPL-LICENSE.txt, MIT-LICENSE.txt, version.txt" /> |
| 266 | + </copy> |
| 267 | + <copy todir="google/i18n"> |
| 268 | + <fileset dir="${dist.dir}ui/i18n" /> |
| 269 | + <fileset dir="${dist.dir}ui/minified/i18n" /> |
| 270 | + </copy> |
| 271 | + <copy todir="google/themes"> |
| 272 | + <fileset dir="../themes" /> |
| 273 | + </copy> |
280 | 274 | <for param="file"> |
281 | 275 | <path><fileset dir="google" includes="**/" excludes="**/*.MD5" /></path> |
282 | 276 | <sequential> |
283 | | - <echo message="@{file}" /> |
284 | | - <concat><file file="@{file}.MD5" /></concat> |
| 277 | + <propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?google[\\/](.+)$" replace="\1"/> |
| 278 | + <propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" /> |
| 279 | + <checksum property="sum" file="@{file}" /> |
| 280 | + <concat destfile="google/MANIFEST" append="yes" fixlastline="yes">${relativepath} ${sum}</concat> |
285 | 281 | </sequential> |
286 | 282 | </for> |
287 | | - --> |
288 | 283 | </target> |
289 | 284 |
|
290 | 285 | </project> |
0 commit comments