<target name="minify" if="yuicompress.available">
<echo message="Minification of CSS files." />
<apply executable="java" dir="${dest.dir}" relative="true">
<fileset dir="${dest.dir}" includes="**/WebServerResources/**/*.css"/>
<arg line="-jar"/>
<arg path="${yuicompress.jar}"/>
<srcfile/>
<arg line="--charset"/>
<arg value="utf-8"/>
<arg line="-o"/>
<targetfile/>
<mapper type="identity"/>
</apply>
<replace dir="${dest.dir}" includes="**/WebServerResources/**/*.css" token=";}" value="}"/>
<echo message="Minification of JS files." />
<apply executable="java" dir="${dest.dir}" relative="true">
<fileset dir="${dest.dir}" includes="**/WebServerResources/**/*.js"/>
<arg line="-jar"/>
<arg path="${yuicompress.jar}"/>
<srcfile/>
<arg line="--charset"/>
<arg value="utf-8"/>
<arg line="-o"/>
<targetfile/>
<mapper type="identity"/>
</apply>
</target>
though that should be done only for deployment (i.e. building Wonder with that would make debugging js code in Eclipse hard).