Task for formatting Java source code. This task utilises the PrettyPrinter
code in the JRefactory code produced by Chris
Sequin . This library can be found at
http://users.snip.net/~aseguin/chrissoft.html .
The current implementation is very simple. I am implemented it as
quickly as possible to make it available for others to be able to improve
upon!
The task takes only a "file" attribute or an embedded fileset. It contains no
other attributes at present, as all formatting controls are read from the
default pretty printer preferences file which is stored in a ".Refactory"
directory in your home directory. If no such file exists the first time this
task is run, a default file is generated automatically.
Features that would be well worth implementing include: adding attributes to
control all of the formatting features of the PrettyPrinter, and removing any
reliance on an external preference file; allowing the formatted source files
to be saved into a different location than the originals.
author: Stuart Roebuck author: stuart.roebuck@adolos.com |