Configuring Sun Master Indexes (Repository)

Working With the XML Editor

Sun Master Index supports the version control functionality provided by Java CAPS. You can check files in and out, retrieve older versions to a workspace, view a version history, and so on. In addition, Sun Master Index supports recursive check-ins and check-outs. When you select Recurse project, you can check in or out all components below the selected node or a subset of those components.

Saving a Configuration File to the Repository

Before modifying a file, be sure to check the file out of the Repository. You can perform this step before or after opening the file. When you are done with your modifications, save the file to the Repository.

ProcedureTo Save a Configuration File to the Repository

  1. With the file open in the XML or text editor, right-click in the XML editor to display the XML editor context menu.

  2. On the context menu, click Save.

  3. For XML files, validate the file (described in the following procedure) and check it back in to the Repository.


    Note –

    If you did not check the file out before making changes and attempting to save it, a warning dialog box appears. Click Yes on this dialog box to automatically check out the file, save the changes, and check it back in.


Validating XML Files

Sun Master Index includes one XML schema definition (XSD) file for each configuration file. Before saving changes to a file, be sure to validate it against the XSD file to make sure no dependencies have been broken during modification.

ProcedureTo Validate XML Syntax

  1. After you save any changes to a configuration file to the Repository, keep the file open and right-click in the text of the file.

  2. On the context menu that appears, click Check XML.

  3. A message appears indicating the status of the validation and, if there were errors, includes a list of errors.

  4. Fix any errors found in the file and revalidate.

ProcedureTo Validate Against the Schema

  1. After you save any changes to a configuration file to the Repository, right-click that file in the project Explorer.

  2. On the context menu that appears, click Validate.

  3. A message appears indicating the status of the validation and, if there were errors, includes a list of errors.

  4. Fix any errors found in the file and revalidate.