JSMin Ant Task

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

JSMin Ant Task Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Matt Haynes
  • Publisher web site:
  • http://code.google.com/p/jsmin-ant-task/

JSMin Ant Task Tags


JSMin Ant Task Description

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 > Requirements: · Java 2 Standard Edition Runtime Environment 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 · Improved copy / overwrite functionality · Several people have contributed patches to this release which is really nice to see, many thanks guys! I also have to apologise for the amount of time it took to get this release out!


JSMin Ant Task Related Software