JSMin Ant Task 0.2.3

JSMin Ant Task is a custom task for Apache Ant which acts as an interface to the JSMin program.
JSMin Ant Task is a custom task for Apache Ant which acts as an interface to the JSMin program.

JSMin is a filter which removes comments and unnecessary whitespace from javascript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation.

The JSMin Ant task acts as an interface to the JSMin Java class. The task can be used for the automated minification of javascript files in your build and deploy processes.

· Specify destination directory option.
· Suffix minified files option.
· Support for nested filesets
· Tested with Apache Ant 6.5+. Please let us know if the task works with earlier versions!!

Examples:

Define the task in your build file:

< taskdef name="jsmin"
classname="net.matthaynes.jsmin.JSMin_Task"
classpath="/path/to/jsmin.jar"/ >

Using the task on a single file, with the .min suffix added to the file extension:

< jsmin srcfile="file.js" suffix="true" / >

Using the task with a fileset, and an output directory specified:

< jsmin destdir="./outputdirectory" >
< fileset dir="./somejsdirectory/" includes="**/*.js"/ >
< /jsmin >

last updated on:
September 25th, 2008, 12:21 GMT
price:
FREE!
developed by:
Matt Haynes
homepage:
code.google.com
license type:
GPL (GNU General Public License) 
category:
ROOT \ Programming \ Assembler Tools

FREE!

In a hurry? Add it to your Download Basket!

user rating 19

2.7/5
 

0/5

Rate it!
What's New in This Release:
  • I have finally got around to releasing an update to the JSMin Ant Task project I have on Googlecode. The new version includes a few improvements, new features and bug fixes, including:
  • Fix to bug that occurred when minifying jquery 1.2.2
  • New feature to add a copyright notice to your minified scripts
read full changelog

Add your review!

SUBMIT