Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jzaefferer committed Nov 19, 2010
1 parent 0c3e56d commit 812c274
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build/build.xml
Expand Up @@ -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">
Expand Down Expand Up @@ -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}" />
Expand Down

0 comments on commit 812c274

Please sign in to comment.