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.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!

What's new in JSMin Ant Task 0.2.3:

  • 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
send us
an update
GPL (GNU General Public License) 
2.7/5 19
Matt Haynes
ROOT \ Programming \ Assembler Tools
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!!


Define the task in your build file:

< taskdef name="jsmin"
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


#Apache Ant #JSMin interface #JSMin filter #Apache #Ant #JSMin #interface

Add your review!