Cleaning projects
Cleaning a project deletes the generated code that is already existing for a →target system. All build problems and built states will be discarded. The project will be rebuilt from scratch meaning that the code for the target system will be created from scratch, based on the →resources in the →project.
If the project has been cleaned but code has not been created anew, you will not be able to load the application onto the target system. See troubleshooting article "Cannot build or load application".
|
How to clean the project:
-
In menu Project, select Clean...
-
In the dialog, select the provided project. Or check Clean all projects to execute the cleaning action for all projects.
-
Click Clean.
| Good to know |
|---|
|
Here are the details what "rebuilt from scratch" means in relation to the code for the target system:
|
Alternative for finer control over cleaning the source and target files and for avoiding unnecessary deletion of files unrelated to the resources you are currently working on:
-
Select the project in the view with projects and resources.
-
In menu Project, select Selective Project Clean…
-
In the dialog, do the following:
-
Check Clean src-gen (generated sources) to also delete the files under the project folder
src-genfor the selected resources.
If this option is unchecked, just the files under the project foldertargetare deleted for the selected resources. Also, the project-internal database is emptied and created anew. -
Check one or more of the listed resources. Or check Select all resources to execute the cleaning action for all resources of the project.
-
-
Click Clean.