Software
Download Contributors |
Pretty Ant Task |
|||||||||||||
<pretty/> simply gives you the chance to integrate source-beautification on selected source files into your build process. It's great tool for teams that work on open source projects. The coding convention is defined in a pretty.settings file and <pretty/> task defined before the compile target. <pretty/> is smart enough not to reformat unmodified code if cvs="true" parameter specified and using CVS as the source control system. It also does not try to beautify if the compiled form source file is older than source file. Parameters
Usage example<taskdef name="pretty" classname="org.acm.seguin.ant.Pretty" classpath="lib/pretty.jar;lib/JavaStyle.jar"/> <pretty settingsDir="${my.config.dir}" cvs="true" compileDir="${build.dir}/classes"> <fileset dir="${src.dir}"> <include name="**/*.java" /> </fileset> </pretty> |
||||||||||||||
Last Modified: October 7, 2003 |