aboutsummaryrefslogtreecommitdiffstats
path: root/build/build.xml
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-05-28 17:17:18 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-05-28 17:18:12 +0200
commit4c3899cd351ffd5225c266815be65a3936a51c68 (patch)
tree3150a3bdb996f249a59e4a9b0bc69a1223c36d21 /build/build.xml
parenta90e195489915ed8a6d66005adea7844cbabe3e7 (diff)
downloadjquery-ui-4c3899cd351ffd5225c266815be65a3936a51c68.tar.gz
jquery-ui-4c3899cd351ffd5225c266815be65a3936a51c68.zip
Build: automate theme downloading, first draft
Diffstat (limited to 'build/build.xml')
-rw-r--r--build/build.xml24
1 files changed, 23 insertions, 1 deletions
diff --git a/build/build.xml b/build/build.xml
index cdd5aff11..9a924c529 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -269,11 +269,33 @@
<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" />
</target>
-
+
<target name="docs-clean">
<delete dir="${docs.dir}" />
</target>
+ <target name="themes-download">
+ <!-- to create query strings, execute this in Firebug on /download page:
+ $("select option[value!=none]").map(function() { $(this).parent().val(this.value); return $(this).parents("form").serialize(); }).get().join("\n");
+ -->
+ <loadfile srcFile="theme" property="url" />
+ <!-- downloads just one theme and unzips it -->
+ <mkdir dir="${dist.dir}themes" />
+ <get src="http://ui-dev.jquery.com/download/?${url}" dest="${dist.dir}themes/first.zip" />
+ <unzip src="${dist.dir}themes/first.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="${dist.dir}themes/first.zip" />
+ <!-- need to rename the concatented file, not yet working
+ <copy file="${dist.dir}themes/**/jquery-ui*custom.css" tofile="${dist.dir}themes/**/jquery-ui.css"/>
+ -->
+ </target>
+
<target name="whitespace">
<replaceregexp match="[\t ]+$" replace="" flags="g" byline="true">
<fileset dir="${src.dir}" includes="*.js"/>