monkeyproof.cc4m.createConfigurationFile

Create a configuration file.

Description

All available checks are added to a configuration file with the provided name. The file is created in the folder where all configurations are stored. In case the filename already exists, a similar name is created and used (existing files are not overwritten)

Syntax

[isOk, newName, folderName] = monkeyproof.cc4m.createConfigurationFile(file)
[isOk, newName, folderName] = monkeyproof.cc4m.createConfigurationFile(file, makeActive)

Inputs

  • file: Filename of new configuration - location and extension are not needed / ignored.
  • makeActive: true (default) if the created configuration file is to be made activate.

Outputs

  • isOk: true in case the configfile is created.
  • newName: In case of success, the name of the file created (which might deviate from the provided name). newName includes the file extension '.xml'. In case isOk is false, newName contains the error message.
  • folderName: Folder in which the configuration file is created.

See also

  • monkeyproof.cc4m.getConfigurationFolder