Create File Rewrite Project - merkator-software/GaiaBuilder-manual GitHub Wiki

The Create File Rewrite Project creates a configuration file for the file rewriting process. The file rewriting process can be used to update URL's, Item ID's and other text in text based files, such as JSON configuration files used in custom Webappbuilder or Experiencebuilder apps. When creating this file or processing file on the build server, the target environment will be used to get updated Item ID's. The files will not be published to a server, you will need to include your own tools to copy the processed files from the publishing directory on the build server to the final location. This tool cannot be run from the command line.

images/CreateFileRewrite.png

  • Output Project File: navigate to the folder where the JSON file should be created, this should be the same directory where the input files are located.
  • Input Files: one or more files that will be processed by GaiaBuilder with text rewrites, ItemID updates
  • Rewrites Input Environment: the Environment from the GaiaBuilder Environment Registry which contains the URL's and other text that will be replaced and updated
  • Environments: the output Environments which will be added to the config file.
  • ItemID rewrites: Optional list of ItemID's which GaiaBuilder will replace with a new ItemID from the target Environment using the ItemRegistry on the target Environment

Example: images/CreateFileRewriteExample.png