JSMin Ant Task is a custom task for Apache Ant which acts as an interface to the JSMin program.
Version: 0.2.3JSMin Ant Task is a custom task for Apache Ant which acts as an interface to the JSMin program.
Operating System: Linux
· 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"
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 >