<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>