Copy deployment files to a specific folder

Tip: The Deploy settings are build configuration specific, allowing you to deploy different sets of files per configuration, for a single project. Ensure the correct build configuration is selected at the top of the right-hand pane before configuring this section.
Use the Deploy settings to send a copy of certain build artifacts to a specific 'deploy' folder.
  1. Select the required project, and then on the Project menu, select Properties.

    The Properties for <project-name> dialog box is displayed.

  2. In the left-hand pane, select Micro Focus > Build Configurations and then in the right-hand pane, select a configuration, or create a new one by clicking Manage Configurations, then Add Build Configuration.
  3. In the left-hand pane again, click Deploy.

    The deploy settings for the selected build configuration are displayed.

  4. Set Deploy project to Yes.
  5. To the right of Deploy folder, click Ellipsis button and use the Folder Selection dialog box to select a folder in which to deploy the files.
    Note: The list of available folders is populated using the File > New > Folder menu command.
  6. Set Deploy file patterns to a list of paths and file names or wildcard pattern matches for a list of required executable files and supporting files. For executables, use one of the following matches:
    *${exeext} Files with .exe extension
    *${dllext} Files with .dll extension
    *${objext} Files with .obj extension

    For example, specify New_Configuration.bin/*${dllext} to copy all .dll files from the project's New_Configuration.bin folder to the specified deploy folder. For any other files, you can use any of the regular expressions permitted within Ant. If no absolute path name is specified, a path relative to the project folder is used.

  7. In Deploy files, type the file names (and paths relative to the main project folder) of the non-executable files to deploy. Separate each file name with a comma.
  8. Set Clean the Deploy folder to Yes to delete all files in the folder before compilation.
    Note: The deploy folder is cleaned whenever the project's properties are updated. If you have more than one project deploying to the same folder, ensure that this setting is consistent throughout those projects in order to stop deployed files being inadvertently removed.
  9. Click Apply.

    The project is built and the specified files are deployed to the folder.