If you use many times the same set of configuration options, you might find it useful to store them in an external configuration file. Once you have that file, you can simply refer to it.
The format of an external configuration is simply a .properties file with the names of the properties and their corresponding values. For example:
skins=Eclipse,styles/eclipse.css
title=ClassResolver.java
titleLocation=http://www.planetalia.com
author="Alexander Hristov"
generateOutline=true
generateJavadocLinks=true
javadocs=C:\Archivos de programa\Java\jdk1.5.0_05\docs\api,http://java.sun.com/j2se/1.5.0/docs/api
generateNavigationBox=true
showLineNumbers=true
highlight="5..40,90..100"
hide="120..150"
To read an external configuration use the --config command line argument:
java2web .... --config = c:\foo.properties
To make HTMLConverter read an external configuration, use either of the available configure() methods:
public void configure( Properties options )
public void configure( String fileName )
To refer to an external configuration with the JSP tag, use the config attribute. Have in mind that this attribute takes a URL relative to the current application context root.
<j2w:code ... config="/WEB-INF/java2web.properties" />