aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-11-19 16:56:14 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-11-19 16:59:17 +0100
commit812c274a3376c4fee4d9705628a629d185bc86a9 (patch)
tree35bd1038575ec5863e23cfb03899fc9c2676dd45 /build
parent0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8 (diff)
downloadjquery-ui-812c274a3376c4fee4d9705628a629d185bc86a9.tar.gz
jquery-ui-812c274a3376c4fee4d9705628a629d185bc86a9.zip
Build: Replace filename references in base/all.min.css. Fixes #6634 - minified css does not @include minified css files.
Also make a copy of images to fix relative paths.
Diffstat (limited to 'build')
-rw-r--r--build/build.xml18
1 files changed, 15 insertions, 3 deletions
diff --git a/build/build.xml b/build/build.xml
index 4cc7c62b6..a132502bf 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -42,7 +42,7 @@
<property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" />
<property description="YUI Compressor" name="yuicompressor-jar" value="${build.dir}/yuicompressor-2.4.2.jar" />
- <target name="deploy-release" depends="clean, docs-download, copy, minify, replace-version, prepend-header, zip" description="Release builder">
+ <target name="deploy-release" depends="clean, copy, minify, replace-version, prepend-header, zip" description="Release builder">
</target>
<target name="replace-version">
@@ -196,10 +196,22 @@
<mapper type="glob" from="*.css" to="${dist.dir}/themes/base/minified/*.min.css" />
<targetfile/>
</apply>
-
+
+ <replaceregexp match=".css" replace=".min.css" flags="g">
+ <fileset dir="${dist.dir}/themes/base/minified/">
+ <include name="*.base.min.css"/>
+ <include name="*.all.min.css"/>
+ </fileset>
+ </replaceregexp>
+
+ <!-- make a copy of all theme images to ensure that relative paths in minified css files work -->
+ <copy todir="${dist.dir}/themes/base/minified/images" >
+ <fileset dir="${ui.dir}/themes/base/images" />
+ </copy>
+
<echo message="Minified ui/ built." />
</target>
-
+
<target description="Copy needed folders" name="copy">
<echo message="Copying files" />
<mkdir dir="${dist.dir}" />