Editing a Configuration File

When using EditJTI to edit a configuration file you can use either one of two edit command formats:

  1. tag=value for direct replacement of values. You must know the tag-name for the question that sets the value.
  2. /old pattern/new pattern/ to replace all occurrences (strings) of an "old pattern" to a "new pattern." This format replaces all occurrences in the file.

When using the /old pattern/new pattern/ format, the separator used can be any character, however, it is recommended that the string be enclosed in quotes to avoid shell problems:

"|/java/jdk/1.3/|/java/jck/1.4/|"

The following text is a note
To run the following examples of editing configuration files, you must replace myoriginal.jti with a .jti file name that exists on your system. Win32 users must also replace the "\" file separators with "/" to run these examples.

Example:
java -cp [jt_dir/lib/]javatest.jar com.sun.javatest.EditJTI -o mynew.jti "|/java/jdk/1.3/|/java/jck/1.4/|" myoriginal.jti