Skip to content

Instantly share code, notes, and snippets.

@laurendavissmith
Created June 27, 2011 17:27
Show Gist options
  • Save laurendavissmith/1049326 to your computer and use it in GitHub Desktop.
Save laurendavissmith/1049326 to your computer and use it in GitHub Desktop.
ANT YUI compression
<target name="-compress">
<property name="YUI_COMPRESSOR" value="${RESOURCE_DIR}/yuicompressor-2.4.6.jar" />
<apply executable="java" parallel="false">
<fileset dir="${BUILD_DIR}" includes="${FILENAME}" />
<arg line="-jar"/>
<arg path="${YUI_COMPRESSOR}"/>
<srcfile/>
<arg line="-o"/>
<mapper type="glob" from="*.js" to="${BUILD_DIR}/*.compress.js"/>
<targetfile/>
</apply>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment