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.
-
Select the required project, and then on the
Project menu, select
Properties.
The Properties for <project-name> dialog box is displayed.
-
In the left-hand pane, select
and then in the right-hand pane, select a configuration, or create a new one by clicking
Manage Configurations, then
.
-
In the left-hand pane again, click
Deploy.
The deploy settings for the selected build configuration are displayed.
-
Set
Deploy project to
Yes.
-
To the right of
Deploy folder, click
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
menu command.
-
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.
-
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.
-
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.
-
Click
Apply.
The project is built and the specified files are deployed to the folder.