Permalink
Browse files

Fixed minify target

  • Loading branch information...
1 parent 4b8d1d0 commit 5e0ef9889e4f8577b8e4e588b60b9b9c844b1724 Nicholas C. Zakas committed Dec 9, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 build.xml
View
@@ -94,11 +94,15 @@
<!-- minify CSS files with YUI Compressor -->
<target name="minify">
- <exec executable="java" failonerror="true">
+ <apply executable="java" failonerror="true">
+ <fileset dir="${build.dir}" includes="*.css"/>
+ <mapper type="glob" from="*.css" to="${build.dir}/*-min.css"/>
<arg line="-jar"/>
<arg path="${lib.dir}/${yuicompressor}"/>
- <arg line="-o '.css$:-min.css' ${build.dir}/*.css"/>
- </exec>
+ <arg line="-o"/>
+ <targetfile/>
+ <srcfile/>
+ </apply>
</target>
<!-- build the core library -->

0 comments on commit 5e0ef98

Please sign in to comment.