tcases:anon

Full name:

org.cornutum.tcases:tcases-maven-plugin:4.0.5:anon

Description:

Runs the Tcases Anonymizer.

Attributes:

  • Requires a Maven project to be executed.

Optional Parameters

Name Type Since Description
<contentType> String - Defines the default content type for files that are read and produced. The contentType must be one of "json" or "xml". The default content type is assumed for any file that is not specified explicitly or that does not have a recognized extension. If omitted, the default content type is derived from the input definition file name.
User property is: contentType.
<genDef> String - Defines the name for the generator definition file for an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "*-Generators.xml" or "*-Generators.json" (depending on the contentType).
User property is: genDef.
<inputDef> String - Defines a single pattern that matches the system input definition files to be anonymized, relative to the directory specified by the inputDir. If omitted, the default value matches all files of the form "*-Input.xml" or "*-Input.json". An input definition file defines a project name that is used to form the default names for other associated files. For an input definition file of the form "${prefix}-Input.xml", the project name is "${prefix}". Otherwise, the project name is the basename of the input definition file.
User property is: inputDef.
<inputDefs> Set - Defines a set of patterns that match the system input definition files to be anonymized. By default, Tcases uses the single pattern defined by the inputDef parameter.
User property is: inputDefs.
<inputDir> String - Defines the path to the directory where system input definition files are located. A relative path is applied relative to the ${basedir} of the project.
Default value is: ${basedir}/src/test/tcases.
User property is: inputDir.
<outDir> String - Defines the path to the directory where anonymized output is written. A relative path is applied relative to the ${project.build.directory} of the project.
Default value is: ${project.build.directory}/tcases.
User property is: outDir.
<outFile> String - Defines the name for the anonymized output file generated from an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "anon-*-Input.xml" or "anon-*-Input.json" (depending on the contentType).
User property is: outFile.
<project> String - A short-hand form of the inputDefs parameter that makes it easier to select the system input definition for a specific project. Equivalent to setting inputDefs to ∗∗/${project}-Input.xml,∗∗/${project}.xml,∗∗/${project}-Input.json,∗∗/${project}.json.
User property is: project.

Parameter Details

<contentType>

Defines the default content type for files that are read and produced. The contentType must be one of "json" or "xml". The default content type is assumed for any file that is not specified explicitly or that does not have a recognized extension. If omitted, the default content type is derived from the input definition file name.
  • Type: java.lang.String
  • Required: No
  • User Property: contentType

<genDef>

Defines the name for the generator definition file for an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "*-Generators.xml" or "*-Generators.json" (depending on the contentType).
  • Type: java.lang.String
  • Required: No
  • User Property: genDef

<inputDef>

Defines a single pattern that matches the system input definition files to be anonymized, relative to the directory specified by the inputDir. If omitted, the default value matches all files of the form "*-Input.xml" or "*-Input.json". An input definition file defines a project name that is used to form the default names for other associated files. For an input definition file of the form "${prefix}-Input.xml", the project name is "${prefix}". Otherwise, the project name is the basename of the input definition file.
  • Type: java.lang.String
  • Required: No
  • User Property: inputDef

<inputDefs>

Defines a set of patterns that match the system input definition files to be anonymized. By default, Tcases uses the single pattern defined by the inputDef parameter.
  • Type: java.util.Set
  • Required: No
  • User Property: inputDefs

<inputDir>

Defines the path to the directory where system input definition files are located. A relative path is applied relative to the ${basedir} of the project.
  • Type: java.lang.String
  • Required: No
  • User Property: inputDir
  • Default: ${basedir}/src/test/tcases

<outDir>

Defines the path to the directory where anonymized output is written. A relative path is applied relative to the ${project.build.directory} of the project.
  • Type: java.lang.String
  • Required: No
  • User Property: outDir
  • Default: ${project.build.directory}/tcases

<outFile>

Defines the name for the anonymized output file generated from an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "anon-*-Input.xml" or "anon-*-Input.json" (depending on the contentType).
  • Type: java.lang.String
  • Required: No
  • User Property: outFile

<project>

A short-hand form of the inputDefs parameter that makes it easier to select the system input definition for a specific project. Equivalent to setting inputDefs to ∗∗/${project}-Input.xml,∗∗/${project}.xml,∗∗/${project}-Input.json,∗∗/${project}.json.
  • Type: java.lang.String
  • Required: No
  • User Property: project