efj1
Manual page for eclipse formatter for java
Usage
efj <options>
<source
files>
Overview
EFJ is the commanline version of the Eclipse source code formatter. The main motivation for EFJ comes from a request to use Eclipse's Java formatter without having to install the entire Eclipse Platform, JDT or a GUI toolkit. It is possible to run a nightly cron job which checks out the code, formats it and checks it back in. EFJ could also be used in a server side commit hook.
Options
-config<file> Use the formatting style from the specified config file. This file must be an xml file that has been exported by Eclipse.
-helpDisplay this message.
-quietOnly print error messages.
-verboseBe verbose about the formatting job.
Issues
You may also notice that an empty workspace directory is created in the directory that efj is called from. This is because EFJ is just a GUI-less version of eclipse. Affords exists to disable this behaviour.