2008-06-07 20:02:49 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
jQuery UI Release!
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
Call task called 'deploy-release' to build a full release.
|
|
|
|
The release built will be stored on 'dist' dir.
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="jquery-ui" default="deploy-release" basedir=".">
|
2008-12-22 18:26:26 +00:00
|
|
|
|
|
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="build/ant-contrib-0.6.jar"/>
|
|
|
|
</classpath>
|
|
|
|
</taskdef>
|
2009-01-08 19:01:26 +00:00
|
|
|
|
|
|
|
<property file="ant.properties" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2010-08-05 16:03:05 +00:00
|
|
|
<loadfile failonerror="no" srcFile="../version.txt" property="release.version">
|
|
|
|
<filterchain><striplinebreaks/></filterchain>
|
|
|
|
</loadfile>
|
2009-03-03 13:12:35 +00:00
|
|
|
<property name="release.filename" value="jquery-ui-${release.version}" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<property name="dist.dir" value="dist/${release.filename}/" />
|
2010-03-30 11:27:23 +00:00
|
|
|
<property name="cdndist.dir" value="dist/${release.filename}-googlecdn" />
|
2009-01-08 19:01:26 +00:00
|
|
|
<property name="build.dir" value="build" />
|
|
|
|
<property name="ui.dir" value="../" />
|
|
|
|
<property name="src.dir" value="${ui.dir}/ui/" />
|
2009-03-03 13:26:01 +00:00
|
|
|
<property name="theme.dir" value="${ui.dir}/themes/base/" />
|
2010-05-31 13:23:30 +00:00
|
|
|
<property name="docs.dir" value="${dist.dir}/docs/" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2010-03-29 16:58:38 +00:00
|
|
|
<property name="min.dir" value="${dist.dir}/ui/minified" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2009-03-03 13:12:35 +00:00
|
|
|
<property name="concatenated" value="jquery-ui" />
|
|
|
|
<property name="concatenated.i18n" value="jquery-ui-i18n" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2009-12-24 09:47:03 +00:00
|
|
|
<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" />
|
2010-03-29 16:58:38 +00:00
|
|
|
<property name="core.files.min" value="jquery.ui.core.min.js, jquery.ui.widget.min.js, jquery.ui.mouse.min.js, jquery.ui.draggable.min.js, jquery.ui.droppable.min.js, jquery.ui.resizable.min.js, jquery.ui.selectable.min.js, jquery.ui.sortable.min.js, jquery.effects.core.min.js" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2010-03-20 19:28:10 +00:00
|
|
|
<property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" />
|
2009-01-08 19:01:26 +00:00
|
|
|
|
2010-06-23 13:09:53 +00:00
|
|
|
<target name="deploy-release" depends="clean, docs-download, concatenate, minify, copy, replace-version, prepend-header, zip" description="Release builder">
|
2008-11-20 05:07:42 +00:00
|
|
|
</target>
|
2010-03-29 16:58:38 +00:00
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<target name="replace-version">
|
2008-11-20 13:42:56 +00:00
|
|
|
<replaceregexp match="@VERSION" replace="${release.version}" flags="g" byline="true">
|
2008-11-20 05:07:42 +00:00
|
|
|
<fileset dir="${dist.dir}/ui/" includes="*.js"/>
|
2008-12-18 19:02:36 +00:00
|
|
|
<fileset dir="${dist.dir}/ui/minified/" includes="*.js"/>
|
2008-11-20 05:07:42 +00:00
|
|
|
</replaceregexp>
|
2008-11-20 13:42:56 +00:00
|
|
|
<echo message="Replaced all @VERSION to ${release.version}." />
|
|
|
|
</target>
|
2008-12-22 18:26:26 +00:00
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<target name="prepend-header">
|
2008-12-22 18:26:26 +00:00
|
|
|
<copy todir="${dist.dir}/headers/">
|
|
|
|
<fileset dir="${dist.dir}/ui/" includes="*.js" />
|
|
|
|
</copy>
|
|
|
|
<replaceregexp match="^(\/\*.*?\*\/\s).+" replace="\1" flags="s">
|
|
|
|
<fileset dir="${dist.dir}/headers/" includes="*.js"/>
|
|
|
|
</replaceregexp>
|
|
|
|
<for param="file">
|
2010-03-29 16:58:38 +00:00
|
|
|
<path><fileset dir="${min.dir}/" includes="*.js" /></path>
|
2008-12-22 18:26:26 +00:00
|
|
|
<sequential>
|
2009-11-26 02:17:16 +00:00
|
|
|
<propertyregex override="yes" property="target" input="@{file}" regexp=".*[\\/](.+)\.min\.js$" replace="\1"/>
|
2008-12-22 18:26:26 +00:00
|
|
|
<concat destfile="${dist.dir}/ui-headered/${target}.min.js">
|
|
|
|
<header file="${dist.dir}/headers/${target}.js" />
|
|
|
|
<fileset file="@{file}" />
|
|
|
|
</concat>
|
|
|
|
</sequential>
|
|
|
|
</for>
|
2010-08-05 16:52:50 +00:00
|
|
|
<copy todir="${min.dir}" overwrite="true">
|
2008-12-22 18:26:26 +00:00
|
|
|
<fileset dir="${dist.dir}/ui-headered/" includes="*.js" />
|
|
|
|
</copy>
|
2010-03-29 16:58:38 +00:00
|
|
|
|
|
|
|
<!-- once more for the i18n files -->
|
|
|
|
<!-- need to clean up headers in those files first
|
|
|
|
<copy todir="${dist.dir}/headers/i18n/">
|
|
|
|
<fileset dir="${dist.dir}/ui/i18n/" includes="*.js" />
|
|
|
|
</copy>
|
|
|
|
<replaceregexp match="^(\/\*.*?\*\/\s).+" replace="\1" flags="s">
|
|
|
|
<fileset dir="${dist.dir}/headers/i18n/" includes="*.js"/>
|
|
|
|
</replaceregexp>
|
|
|
|
<for param="file">
|
|
|
|
<path><fileset dir="${min.dir}/i18n/" includes="*.js" /></path>
|
|
|
|
<sequential>
|
|
|
|
<propertyregex override="yes" property="target" input="@{file}" regexp=".*[\\/](.+)\.min\.js$" replace="\1"/>
|
|
|
|
<concat destfile="${dist.dir}/ui-headered/i18n/${target}.min.js">
|
|
|
|
<header file="${dist.dir}/headers/i18n/${target}.js" />
|
|
|
|
<fileset file="@{file}" />
|
|
|
|
</concat>
|
|
|
|
</sequential>
|
|
|
|
</for>
|
|
|
|
<copy todir="${min.dir}/i18n/">
|
|
|
|
<fileset dir="${dist.dir}/ui-headered/i18n/" includes="*.js" />
|
|
|
|
</copy>
|
|
|
|
-->
|
|
|
|
|
2009-01-30 07:00:27 +00:00
|
|
|
<delete dir="${dist.dir}/headers/" />
|
2008-12-22 18:26:26 +00:00
|
|
|
<delete dir="${dist.dir}/ui-headered/" />
|
|
|
|
</target>
|
2008-11-20 13:42:56 +00:00
|
|
|
|
|
|
|
<target description="Zip the package" name="zip">
|
|
|
|
<zip destfile="${dist.dir}/../${release.filename}.zip">
|
2009-01-01 01:24:55 +00:00
|
|
|
<zipfileset dir="dist/" />
|
2008-11-20 13:42:56 +00:00
|
|
|
</zip>
|
2008-06-07 20:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<target name="concatenate">
|
2008-06-07 20:02:49 +00:00
|
|
|
<echo message="Building concatenated" />
|
|
|
|
<mkdir dir="${dist.dir}/ui/" />
|
|
|
|
<delete file="${dist.dir}/ui/${concatenated}.js" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<concat destfile="${dist.dir}/ui/${concatenated}.js">
|
|
|
|
<filelist dir="${src.dir}/" files="${core.files}" />
|
2010-01-29 20:06:33 +00:00
|
|
|
<fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" excludes="${core.files}" />
|
2008-06-07 20:02:49 +00:00
|
|
|
</concat>
|
|
|
|
<echo message="Concatenated built." />
|
2008-09-10 00:26:11 +00:00
|
|
|
|
2009-03-03 13:26:01 +00:00
|
|
|
<concat destfile="${dist.dir}/themes/base/${concatenated}.css">
|
2010-02-16 12:36:43 +00:00
|
|
|
<fileset dir="${theme.dir}/" includes="jquery.ui.core.css" />
|
|
|
|
<fileset dir="${theme.dir}/" includes="jquery.ui.*.css" excludes="jquery.ui.all.css, jquery.ui.core.css, jquery.ui.base.css, jquery.ui.theme.css" />
|
|
|
|
<fileset dir="${theme.dir}/" includes="jquery.ui.theme.css" />
|
2009-03-03 13:26:01 +00:00
|
|
|
</concat>
|
|
|
|
<echo message="Concatenated theme." />
|
|
|
|
|
2008-09-10 00:26:11 +00:00
|
|
|
<mkdir dir="${dist.dir}/ui/i18n/" />
|
|
|
|
<delete file="${dist.dir}/ui/i18n/${concatenated.i18n}.js" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-09-10 00:26:11 +00:00
|
|
|
<concat destfile="${dist.dir}/ui/i18n/${concatenated.i18n}.js" encoding="utf-8">
|
2010-01-15 12:36:59 +00:00
|
|
|
<fileset dir="${src.dir}/i18n/" includes="jquery.ui.*.js" />
|
2008-09-10 00:26:11 +00:00
|
|
|
</concat>
|
|
|
|
<echo message="Concatenated i18n built." />
|
2008-06-07 20:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<target name="minify" depends="concatenate" description="Remove all comments and whitespace, no compression, great in combination with GZip">
|
2008-06-07 20:02:49 +00:00
|
|
|
<echo message="Building minified" />
|
2010-03-29 16:58:38 +00:00
|
|
|
<delete dir="${min.dir}/" />
|
|
|
|
<mkdir dir="${min.dir}" />
|
|
|
|
<delete dir="${min.dir}/i18n/" />
|
|
|
|
<mkdir dir="${min.dir}/i18n/" />
|
2010-03-20 19:28:10 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<apply executable="java" parallel="false">
|
2009-11-13 03:59:03 +00:00
|
|
|
<fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
|
2008-06-07 20:02:49 +00:00
|
|
|
<arg line="-jar" />
|
2010-03-29 15:39:09 +00:00
|
|
|
<arg path="${closure-jar}" />
|
2010-03-20 19:28:10 +00:00
|
|
|
<arg value="--warning_level" />
|
|
|
|
<arg value="QUIET" />
|
|
|
|
<arg value="--js_output_file" />
|
2008-06-07 20:02:49 +00:00
|
|
|
<targetfile />
|
2010-03-20 19:28:10 +00:00
|
|
|
<arg value="--js" />
|
2010-03-29 16:58:38 +00:00
|
|
|
<mapper type="glob" from="*.js" to="${min.dir}/*.min.js" />
|
2008-06-07 20:02:49 +00:00
|
|
|
</apply>
|
2010-03-29 16:58:38 +00:00
|
|
|
|
|
|
|
<concat destfile="${min.dir}/${concatenated}.min.js">
|
|
|
|
<filelist dir="${min.dir}" files="${core.files.min}" />
|
|
|
|
<fileset dir="${min.dir}" includes="jquery.ui.*.js, jquery.effects.*.js" excludes="${core.files.min}" />
|
|
|
|
</concat>
|
2010-03-20 19:28:10 +00:00
|
|
|
|
2010-03-29 16:58:38 +00:00
|
|
|
<apply executable="java" parallel="false">
|
|
|
|
<fileset dir="${src.dir}/i18n/" includes="jquery.ui.*.js" />
|
2008-11-20 05:07:42 +00:00
|
|
|
<arg line="-jar" />
|
2010-03-29 15:39:09 +00:00
|
|
|
<arg path="${closure-jar}" />
|
2010-03-20 19:28:10 +00:00
|
|
|
<arg value="--warning_level" />
|
|
|
|
<arg value="QUIET" />
|
|
|
|
<arg value="--js_output_file" />
|
2008-06-07 20:02:49 +00:00
|
|
|
<targetfile />
|
2010-03-20 19:28:10 +00:00
|
|
|
<arg value="--js" />
|
2010-03-29 16:58:38 +00:00
|
|
|
<mapper type="glob" from="*.js" to="${min.dir}/i18n/*.min.js" />
|
2008-06-07 20:02:49 +00:00
|
|
|
</apply>
|
2010-03-29 16:58:38 +00:00
|
|
|
|
|
|
|
<concat destfile="${min.dir}/i18n/${concatenated.i18n}.min.js">
|
|
|
|
<fileset dir="${min.dir}/i18n" includes="jquery.ui.*.js" />
|
2010-03-20 19:28:10 +00:00
|
|
|
</concat>
|
2010-03-29 16:58:38 +00:00
|
|
|
|
2010-03-20 19:28:10 +00:00
|
|
|
<echo message="Minified ui/ built." />
|
2008-06-07 20:02:49 +00:00
|
|
|
</target>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<target description="Copy needed folders" name="copy">
|
2008-06-07 20:02:49 +00:00
|
|
|
<echo message="Copying files" />
|
|
|
|
<mkdir dir="${dist.dir}" />
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-09 08:06:59 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/">
|
|
|
|
<fileset dir="${ui.dir}/" includes="jquery-*.js" />
|
|
|
|
</copy>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/ui/">
|
2009-11-13 03:59:03 +00:00
|
|
|
<fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
|
2008-06-07 20:02:49 +00:00
|
|
|
</copy>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/ui/i18n/" >
|
|
|
|
<fileset dir="${src.dir}/i18n/" />
|
|
|
|
</copy>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/">
|
|
|
|
<fileset dir="${ui.dir}/" includes="*.txt" />
|
|
|
|
</copy>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/demos/" >
|
|
|
|
<fileset dir="${ui.dir}/demos/" />
|
|
|
|
</copy>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2009-01-30 07:00:27 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/external/" >
|
|
|
|
<fileset dir="${ui.dir}/external/" />
|
|
|
|
</copy>
|
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/tests/" >
|
|
|
|
<fileset dir="${ui.dir}/tests/" />
|
|
|
|
</copy>
|
2008-11-20 05:07:42 +00:00
|
|
|
|
2008-06-07 20:02:49 +00:00
|
|
|
<copy overwrite="true" todir="${dist.dir}/themes/" >
|
|
|
|
<fileset dir="${ui.dir}/themes/" />
|
|
|
|
</copy>
|
|
|
|
<echo message="Files copied." />
|
|
|
|
</target>
|
2008-11-20 13:42:56 +00:00
|
|
|
|
2009-01-08 19:01:26 +00:00
|
|
|
<target name="clean">
|
2009-01-03 14:47:12 +00:00
|
|
|
<delete dir="dist" />
|
2008-06-07 20:02:49 +00:00
|
|
|
</target>
|
2009-01-08 19:01:26 +00:00
|
|
|
|
2010-02-01 17:51:23 +00:00
|
|
|
<target name="docs-download" depends="docs-clean">
|
2009-01-08 21:51:13 +00:00
|
|
|
<mkdir dir="${docs.dir}" />
|
2009-03-03 13:12:35 +00:00
|
|
|
<property name="url" value="http://docs.jquery.com/action/render/UI/API/${release.version}/" />
|
|
|
|
|
|
|
|
<get src="${url}Draggable" dest="${docs.dir}draggable.html" />
|
|
|
|
<get src="${url}Droppable" dest="${docs.dir}droppable.html" />
|
|
|
|
<get src="${url}Resizable" dest="${docs.dir}resizable.html" />
|
|
|
|
<get src="${url}Selectable" dest="${docs.dir}selectable.html" />
|
|
|
|
<get src="${url}Sortable" dest="${docs.dir}sortable.html" />
|
|
|
|
|
|
|
|
<get src="${url}Accordion" dest="${docs.dir}accordion.html" />
|
2010-01-26 21:04:29 +00:00
|
|
|
<get src="${url}Autocomplete" dest="${docs.dir}autocomplete.html" />
|
|
|
|
<get src="${url}Button" dest="${docs.dir}button.html" />
|
2009-03-03 13:12:35 +00:00
|
|
|
<get src="${url}Datepicker" dest="${docs.dir}datepicker.html" />
|
|
|
|
<get src="${url}Dialog" dest="${docs.dir}dialog.html" />
|
|
|
|
<get src="${url}Progressbar" dest="${docs.dir}progressbar.html" />
|
|
|
|
<get src="${url}Slider" dest="${docs.dir}slider.html" />
|
|
|
|
<get src="${url}Tabs" dest="${docs.dir}tabs.html" />
|
|
|
|
|
2010-03-18 12:29:25 +00:00
|
|
|
<get src="${url}Position" dest="${docs.dir}position.html" />
|
2009-08-02 08:31:54 +00:00
|
|
|
|
2009-03-03 13:12:35 +00:00
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/animate" dest="${docs.dir}animate.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/addClass" dest="${docs.dir}addClass.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/effect" dest="${docs.dir}effect.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/hide" dest="${docs.dir}hide.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/removeClass" dest="${docs.dir}removeClass.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/show" dest="${docs.dir}show.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/switchClass" dest="${docs.dir}switchClass.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/toggle" dest="${docs.dir}toggle.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/toggleClass" dest="${docs.dir}toggleClass.html" />
|
2010-02-01 17:51:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Blind" dest="${docs.dir}effect-blind.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Clip" dest="${docs.dir}effect-clip.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Drop" dest="${docs.dir}effect-drop.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Explode" dest="${docs.dir}effect-explode.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Fade" dest="${docs.dir}effect-fade.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Fold" dest="${docs.dir}effect-fold.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Puff" dest="${docs.dir}effect-puff.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Slide" dest="${docs.dir}effect-slide.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Scale" dest="${docs.dir}effect-scale.html" />
|
|
|
|
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Bounce" dest="${docs.dir}effect-bounce.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Highlight" dest="${docs.dir}effect-highlight.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Pulsate" dest="${docs.dir}effect-pulsate.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Shake" dest="${docs.dir}effect-shake.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Size" dest="${docs.dir}effect-size.html" />
|
|
|
|
<get src="http://docs.jquery.com/action/render/UI/Effects/Transfer" dest="${docs.dir}effect-transfer.html" />
|
2009-01-08 21:51:13 +00:00
|
|
|
</target>
|
2010-05-28 15:17:18 +00:00
|
|
|
|
2009-01-08 21:51:13 +00:00
|
|
|
<target name="docs-clean">
|
2009-02-06 19:44:44 +00:00
|
|
|
<delete dir="${docs.dir}" />
|
2009-01-08 21:51:13 +00:00
|
|
|
</target>
|
|
|
|
|
2010-05-28 15:17:18 +00:00
|
|
|
<target name="themes-download">
|
2010-05-31 12:41:02 +00:00
|
|
|
<!-- to create/update query strings for the theme-file, execute this in Firebug on /download page:
|
|
|
|
$("select option[value!=none]").map(function() { $(this).parent().val(this.value).change(); return $(this).parents("form").serialize(); }).get().join(",");
|
2010-05-28 15:17:18 +00:00
|
|
|
-->
|
2010-05-31 12:41:02 +00:00
|
|
|
<loadfile srcFile="themes" property="urls" />
|
|
|
|
<property name="zip" value="${dist.dir}themes/tmp.zip" />
|
2010-05-28 15:17:18 +00:00
|
|
|
<mkdir dir="${dist.dir}themes" />
|
2010-05-31 12:41:02 +00:00
|
|
|
<for list="${urls}" param="url">
|
|
|
|
<sequential>
|
|
|
|
<get src="http://ui-dev.jquery.com/download/?@{url}" dest="${zip}" />
|
|
|
|
<unzip src="${zip}"
|
|
|
|
dest="${dist.dir}themes/">
|
|
|
|
<patternset>
|
|
|
|
<include name="development-bundle/themes/**"/>
|
|
|
|
<exclude name="development-bundle/themes/base/**"/>
|
|
|
|
</patternset>
|
|
|
|
<mapper type="glob" from="development-bundle/themes/*" to="*" />
|
|
|
|
</unzip>
|
|
|
|
<delete file="${zip}" />
|
|
|
|
</sequential>
|
|
|
|
</for>
|
|
|
|
<move todir="${dist.dir}themes/">
|
2010-05-31 13:48:10 +00:00
|
|
|
<fileset dir="${dist.dir}themes/" />
|
|
|
|
<mapper>
|
|
|
|
<mapper type="regexp" from="(.*)jquery-ui-.*custom.css" to="\1jquery-ui.css" />
|
|
|
|
</mapper>
|
|
|
|
</move>
|
2010-06-23 14:24:54 +00:00
|
|
|
<copy todir="dist/jquery-ui-themes-${release.version}">
|
2010-06-23 13:21:17 +00:00
|
|
|
<fileset dir="${dist.dir}/" includes="AUTHORS.txt,GPL-LICENSE.txt,MIT-LICENSE.txt,version.txt,themes/**" />
|
|
|
|
</copy>
|
2010-06-23 14:24:54 +00:00
|
|
|
<zip destfile="${dist.dir}/../jquery-ui-themes-${release.version}.zip">
|
|
|
|
<zipfileset dir="dist/" includes="jquery-ui-themes-${release.version}/" />
|
2010-05-31 13:48:10 +00:00
|
|
|
</zip>
|
2010-05-28 15:17:18 +00:00
|
|
|
</target>
|
|
|
|
|
2009-01-22 13:09:18 +00:00
|
|
|
<target name="whitespace">
|
|
|
|
<replaceregexp match="[\t ]+$" replace="" flags="g" byline="true">
|
|
|
|
<fileset dir="${src.dir}" includes="*.js"/>
|
|
|
|
<fileset dir="${src.dir}/i18n/" includes="*.js"/>
|
|
|
|
</replaceregexp>
|
|
|
|
<echo message="All trailing spaces removed." />
|
|
|
|
</target>
|
2010-03-21 21:16:56 +00:00
|
|
|
|
2010-03-30 11:11:22 +00:00
|
|
|
<target name="googlecdn">
|
2010-03-30 11:27:23 +00:00
|
|
|
<delete dir="${cdndist.dir}" />
|
|
|
|
<mkdir dir="${cdndist.dir}" />
|
|
|
|
<copy todir="${cdndist.dir}">
|
2010-03-30 11:11:22 +00:00
|
|
|
<fileset dir=".." includes="AUTHORS.txt, GPL-LICENSE.txt, MIT-LICENSE.txt, version.txt" />
|
|
|
|
</copy>
|
2010-03-30 11:27:23 +00:00
|
|
|
<copy todir="${cdndist.dir}">
|
2010-03-30 11:23:16 +00:00
|
|
|
<fileset dir="${dist.dir}ui" includes="jquery-ui.js" />
|
|
|
|
<fileset dir="${dist.dir}ui/minified" includes="jquery-ui.min.js" />
|
|
|
|
</copy>
|
2010-03-30 11:27:23 +00:00
|
|
|
<copy todir="${cdndist.dir}/i18n">
|
2010-03-30 11:11:22 +00:00
|
|
|
<fileset dir="${dist.dir}ui/i18n" />
|
|
|
|
<fileset dir="${dist.dir}ui/minified/i18n" />
|
|
|
|
</copy>
|
2010-03-30 11:27:23 +00:00
|
|
|
<copy todir="${cdndist.dir}/themes">
|
2010-03-30 11:34:45 +00:00
|
|
|
<fileset dir="${dist.dir}themes" />
|
2010-03-30 11:11:22 +00:00
|
|
|
</copy>
|
2010-03-30 11:23:16 +00:00
|
|
|
<checksum>
|
2010-03-30 11:27:23 +00:00
|
|
|
<fileset dir="${cdndist.dir}" />
|
2010-03-30 11:23:16 +00:00
|
|
|
</checksum>
|
2010-03-21 21:16:56 +00:00
|
|
|
<for param="file">
|
2010-03-30 11:27:23 +00:00
|
|
|
<path><fileset dir="${cdndist.dir}" includes="**/" excludes="**/*.MD5" /></path>
|
2010-03-21 21:16:56 +00:00
|
|
|
<sequential>
|
2010-03-30 11:37:12 +00:00
|
|
|
<!-- @{file} is an absolute path, use that ugly regexes to make it relative -->
|
|
|
|
<propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?googlecdn[\\/](.+)$" replace="\1"/>
|
2010-03-30 11:11:22 +00:00
|
|
|
<propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" />
|
2010-03-30 11:27:23 +00:00
|
|
|
<concat destfile="${cdndist.dir}/MANIFEST" append="yes">${relativepath} </concat>
|
|
|
|
<concat destfile="${cdndist.dir}/MANIFEST" append="yes"><file file="@{file}.MD5" /></concat>
|
2010-03-21 21:16:56 +00:00
|
|
|
</sequential>
|
|
|
|
</for>
|
2010-03-30 11:27:23 +00:00
|
|
|
<delete dir="${cdndist.dir}" includes="**/*.MD5" />
|
|
|
|
<zip destfile="${dist.dir}/../${release.filename}-googlecdn.zip">
|
2010-06-23 13:21:17 +00:00
|
|
|
<zipfileset dir="dist/" includes="${release.filename}-googlecdn/" />
|
2010-03-30 11:27:23 +00:00
|
|
|
</zip>
|
2010-03-21 21:16:56 +00:00
|
|
|
</target>
|
2009-01-22 13:09:18 +00:00
|
|
|
|
2009-01-08 21:51:13 +00:00
|
|
|
</project>
|