last update: 08/23/2004 14:12:43

Customizing jConfig


In order to customize jConfig you need the source distribution.

Defining the default parser

Currently jConfig uses the DefaultConfigParser as default parser. If you use the for example always the NestedConfigParser then you can now easily change this. Open the file called ConfigurationParserFactory.java in the src/org/jconfig/parser directory. Change the method at the end of the class to your needs:

private static ConfigurationParser getDefaultParser() {
    return new DefaultConfigParser();
    // comment the line above and take this line if you want to use the nested parser to be the default
    // return new NestedConfigParser();        
}

When you now run ANT with no target (all is the default target) then you get your jConfig version in the dist subdirectory.