Skip to content

Instantly share code, notes, and snippets.

@nestserau
Created October 17, 2011 13:53
Show Gist options
  • Save nestserau/1292649 to your computer and use it in GitHub Desktop.
Save nestserau/1292649 to your computer and use it in GitHub Desktop.
Invoke Juicer from Ant build script
<macrodef name="juicer">
<attribute name="inputFile" />
<!-- none|soft|rails|hard -->
<attribute name="cacheBuster" default="none" />
<!-- none|data_uri -->
<attribute name="embedImages" default="data_uri" />
<sequential>
<exec executable="juicer" failOnError="true" logError="true">
<arg value="-v" />
<arg value="merge" />
<arg value="-f" />
<arg value="-c" />
<arg value="@{cacheBuster}" />
<arg value="-e" />
<arg value="@{embedImages}" />
<arg value="@{inputFile}" />
</exec>
</sequential>
</macrodef>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment