History | Edit

Smaller interrelated modules that define a complex Ant build file cannot be correctly edited or validated individually due to their interdependency with other modules. For example, a target defined in a main build file is not visible when you edit an included or imported module. Oxygen XML Editor provides support for defining the main module (or modules), allowing you to edit any of the imported/included files in the context of the larger Ant build structure.

You cat set a main Ant build file either by using the master files support from the Project view, or a validation scenario.

To set a master file using a validation scenario, add validation units that point to the main modules. Oxygen XML Editor warns you if the current module is not part of the dependencies graph computed for the main build file. In this case, it considers the current module as the main build file.

The advantages of editing in the context of master file include:
  • Correct validation of a module in the context of a larger build structure.
  • Content Completion Assistant displays all components valid in the current context.
  • The Outline view displays the components collected from the entire build file structure.