Compiler
Goal
Works with files in src/main/step directory:
- The
.companion.csv,.companion.xlsxand.companion.xlsmfiles are transformed to STEPXML format using Sheet to Xml - The
.companion.xmlfiles are transformed to STEP format with Twirl - The
.step.xmlfiles are copied
mvn c4d:compile
All transformed and copied files are put in the directory target/classes/step.
They have the extension: .step.xml.
Compiler assumes multiple parameters:
companion.perimeter- Description: Used to give the path of the YAML file specifying the perimeter of files to be compiled.
- Example:
compilationPerimeter.yaml.
companion.verbose- Description: Used to log in the console files that are included in the compilation. All
.companion.template.xmlfiles will always be included even if a perimeter is applied. - Allowed values:
false(default value),true.
- Description: Used to log in the console files that are included in the compilation. All
companion.perimeter
Format
Only .companion.csv, .companion.xlsx, .companion.xlsm, .companion.xml and .step.xml files will be included or excluded
The first level of the YAML file must always correspond to the name of a module. (e.g. step-datamodel).
By default, if a file is specified, all modules are ignored. To fully include a module, you must specify its name in the file :
step-datamodel:
Then you can specify includes and excludes.
All paths are relative from src/main/step of the current module
To include or exclude files you have several methods:
- Explicitly specify a file:
path/to/myfile.companion.xmlorpath/to/myfile.companion.csv - Explicitly specify all files inside a directory:
path/to/mydirectory/* - Explicitly specify all files inside a directory recursively:
path/to/mydirectory/ - Use wildcards in name:
path/to/mydirectory/*.companion.xmlwill select all.companion.xmlfile insidepath/to/mydirectory/directorypath/to/*/myfile.companion.csvwill select allmyfile.companion.csvfile inside a subdirectory ofpath/to/directory
- Use wildcards in paths:
path/**/*.companion.xmlwill select all.companion.xmlfile inside all subdirectory ofpath/directory
TIP
If you specify only excludes, all files will be included except those explicitly excluded.
Example
step-contexts:
includes:
- "Context1.companion.csv"
- "ATT_*.companion.xml"
excludes:
- "ATT_3.companion.xml"
step-integration: