Prev | Next |
Cleanup Script
Incremental builds are the practice of only building those assets that have changed in some way. There are times, however, when there is cause to build everything again from scratch. This command is used for those occasions, to remove the binaries and intermediary files associated with a particular build or configuration. The project can then be rebuilt. When you execute the 'Rebuild' menu option on a script, the command(s) you specify in this field are executed, followed immediately by the 'Build' command from the same Analyzer script. Some compilers have options do this for you. Visual studio for example has the "/clean" command line switch.
This is an example script: devenv.com /Clean Debug MyProject.sln
Access
On the Execution Analyzer window, either:
- Locate and double-click on the required script and select the 'Build > Clean' page or
- Click on in the window Toolbar, select the Package in which to create a new script, and select the 'Build > Clean' page
Ribbon |
Develop > Preferences > Analyzer > Edit Analyzer Scripts Execute > Source > Build > Clean |
Analyzer Context Menu |
Clean |
Keyboard Shortcuts |
|
Aspects
Aspect |
Detail |
See also |
---|---|---|
Clean |
Enter the command to be executed when you select 'Clean' from the script context menu. |
|
Execute Command as |
Click on the drop-down arrow and select the appropriate option:
|
|
Default Directory |
Defaults to the value entered for the Build script. If a value has not been set for the Build script, browse for or type in the default directory path in which the Clean script process will run. |
|
Parse Output |
Click on the drop-down arrow and select a method for automatically parsing the compiler output. If you select this option, output from the script is logged in the System Output window; Enterprise Architect parses the output according to the syntax you specify. |
|
Remote Host |
Type in the ID of the remote host system and its port; for example, mypc01:7777. If you set this property to #SYSTEMHOST#, the script is sent to the Windows Satellite Service when running on Windows, and the Linux Satellite Service when running under Wine. The service IDs and Ports are defined in the 'Private Options - Services' section of the Analyzer Scripts Editor. |