Configuration

Although Jalopy ships with sensible default settings (mimicking the Sun Java coding convention), you most likely want to configure the formatter to match your needs (adding copyright headers, tune Javadoc handling and the like). For such, Jalopy comes with a graphical configuration tool that lets you interactively customize the settings. See Chapter 2, Configuration for an in-depth discussion of the available options.

To display the configuration tool, you should use the matching wrapper script for your platform. The wrapper scripts are called jalopy.xxx. Open a shell and invoke the script with the --configure option:

% jalopy --configure

Or you can execute the JAR directly with

% java -jar jalopy-1.9.3.jar --configure

When you’re done configuring the settings, you should export the code convention as described in the section called “Export code convention”. The exported settings file is typically used as part of the Jalopy task configuration in the build script.