Java Runtime Analysis Toolkit


JRat Configuration

The Configuration File

JRat loads its configuration from a file named jrat.xml in the current directory of your application. This file contains system-wide configuration parameters, and also JRat handlers to be configured and assigned to sets of classes and methods.

The Default File

If JRat starts up and can't find it's configuration file, it will create one. The default file provides sensible defaults and provides a good sample for new users.

The XML Format

A Simple Example

The following is is a very simple configuration file.
<?xml version="1.0" encoding="UTF-8"?>
        <property name="httpServerEnabled" value="true"/>

    <profile name="my code">



            <handler factory="org.shiftone.jrat.provider.tree.TreeMethodHandlerFactory">
                <property name="outputFile" value="my_code_tree.jrat"/>



Settings (Global)


Profiles can be given names, however these names are optional and are only used for logging and error messages.


Multiple include and exclude tags may be used to build complex matching criteria. A profile matches if the include clauses match and none of the exclude clauses match.