Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <target name="MinifyJsCss" description="compress the JS files">
- <foreach item="File" property="filename">
- <in>
- <items>
- <include name="${co_dir}/**/*.js" />
- <exclude name="${co_dir}/**/*.min.js" />
- <include name="${co_dir}/**/*.css" />
- <exclude name="${co_dir}/**/*.min.css" />
- </items>
- </in>
- <do>
- <echo message='${filename}' />
- <exec program='java' output="${filename}.min" workingdir="${path::get-directory-name(filename)}">
- <arg value='-jar yuicompressor-2.4.8.jar "${filename}" --charset UTF8 --type ${string::replace(path::get-extension(filename), '.', '')} -o ${path::get-file-name(filename)}' />
- </exec>
- </do>
- </foreach>
- </target>
- <!--www.sansys.net-->
Advertisement
Add Comment
Please, Sign In to add comment