Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.09 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.09 KB

yuicompressor-ant

This project wraps the YUI Compressor with an Ant task to provide better integration of JavaScript and CSS compression to an Ant-based build process. It provides more control with batch processing and output location through file sets and mapper in Ant over the command-line interface.

Requirements

yuicompressor-ant works with the following:

Building

Use Maven to build this library.

Usage

In your Ant build file, use the <taskdef> task to define the <yuicompressor> Ant task (change the JAR file locations as needed):

<taskdef name="yuicompressor"
         classname="com.github.acwwat.ant.taskdefs.YUICompressorTask">
	<classpath>
		<pathelement location="yuicompressor-ant-2.4.8.jar" />
		<pathelement location="yuicompressor-2.4.8.jar" />
	</classpath>
</taskdef>

Refer to the JavaDoc description of the YUICompressorTask class for usage of the Ant task.