Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Supersede utility can be deployed with a Supersede.json configuration file. This file is optional. When Supersede.exe runs it checks for this file, and if it exists, loads the configuration.

This configuration applies to all files the utility processes, however, you can also configure supersede behaviour for specific folders.

Configuration files use the JSON format.

The Supersede.json configuration file is an application configuration file which may contain other configuration objects in addition to the root Supersede object.

Folder specific .supersede-config files only contain Supersede configuration and therefore omit this object.

Example Supersede.json configuration file

Code Block
languagejson
{
  "Supersede": {
    "Copy": {
      "Enabled": true,
      "Path": "..\\Current"
    },
    "Supersede": {
      "Enabled": true,
      "Mode": "Move",
      "Path": "..\\Superseded"
    },
    "Rules": [
      {
        "Pattern": "(?<SheetNumber>.+) - (?<SheetName>.+) \\((?<Revision>.+)\\)",
        "Extensions": [ ".pdf" ],
        "Supersede": {
          "MatchFields": [
            "SheetNumber"
          ]
        }
      },
      {
        "Pattern": "(?<SheetNumber>.+) \\((?<Revision>.+)\\)",
        "Extensions": [ ".dwg" ],
        "Supersede": {
          "MatchFields": [
            "SheetNumber"
          ]
        }
      }
    ]
  }
}

The above configuration specifies some default copy and supersede behaviour and a collection of rules.