Root > Advanced topics > Working with EurekaLog settings > Sharing EurekaLog settings in project group

Sharing EurekaLog settings in project group

Previous pageReturn to chapter overviewNext page   

Important Note: Be extra careful when doing batch compilation of projects in project groups, or using external build tools. There are IDE bugs and other issues, which may pass incorrect information to EurekaLog (via OpenTools API in case of IDE). Pay close attention which settings file is passed to compilers by external build tools. Always double-check the final executables.

 

Sometimes you work on a project with large amount of Delphi projects grouped into project group. You may either want to share a common EurekaLog settings between projects or set EurekaLog settings for few projects simultaneously.

 

Generally speaking, blindly sharing EurekaLog settings between several different projects is not a good idea. Various projects may be of a different type: like VCL application, DLL, packages, etc. These projects must have slightly or significantly different EurekaLog settings.

 

Therefore, a better idea would be to put all of your projects into logical groups, each group should have exactly the same EurekaLog settings. For example, you may select a group of 1 project for main executable, a group for DLLs and a group for packages. In other words, your project group may have either one or several logical groups of projects.

 

Once you have decided which projects should have different EurekaLog settings - it is time to actually assign them.

 

 

1. Option #1: Export / Import ("use by value")

 

1. You should configure EurekaLog for one particular project in a logical group;
2. Open each other project from the same logical group;
3. Import EurekaLog settings from .eof file of project from step 1. Use "Import" button for that;
4. Repeat steps 2-3 for each project in logical group;
5. Repeat steps 1-4 for each logical group. You may re-use saved settings as base settings for step 1;
6. Done.

 

Alternatively:

1. You should configure EurekaLog for one particular project in a logical group;
2. Copy with file manager or other tool the .eof file from project on step 1 to each other projects in the logical group. E.g. Project1.eof -> Project2.eof;
3. Repeat steps 2 for each project in logical group;
4. Repeat steps 1-3 for each logical group. You may re-use saved configuration as base settings for step 1.
5. Done.

 

This sequence will assign exactly the same EurekaLog settings for all projects in the same logical group. However, any further changes to EurekaLog settings in any of projects will not affect other projects in the same logical group. If you want to make changes in all projects in a logical group - then you must edit options in one project and then repeat steps above. In other words, settings of the projects are isolated from each other.

 

 

2. Option #2: Using External Settings ("use by reference")

 

1. You should configure EurekaLog for one particular project in a logical group. Choose project carefully, as it will become a master-project for your group;
2. (Optional) Use "Export" button to save EurekaLog settings into .eof file;
3. Open each other project from the same logical group.
4. Check "Use external settings" option and select .eof file created on step 2 (an open dialog will be opened automatically; if not - use "..." button to manually show open dialog);
5. Repeat steps 3-4 for each project in logical group;
6. Repeat steps 1-5 for each logical group. You may import saved configuration as base settings for step 1. However, do not save all configurations into a single file. You must save each configuration into file corresponding to the project;
7. Done. Do not delete any .eof files - they are required.

 

Alternatively, you may set up "Use external settings" option in one project - then copy .eof of that project to other projects, but only if all projects are in the same folder. E.g. assuming you have External.eof file to hold common settings, you configure Project1.eof to use external settings (e.g. refer to the External.eof), then you copy Project1.eof to Project2.eof (in the same folder).

 

This sequence will also assign exactly the same EurekaLog settings for all projects in the same logical group. However, now your settings are stored in the single .eof file rather than individual .eof files for each project. The advantage of this method is that you can edit EurekaLog options of master-project - and this will automatically "adjust" options in all projects from the same logical group. In other words, all projects will reference the common options.

 

If you want to make some particular project to be different from its logical group - then you can uncheck "Use external settings" option, import .eof file from master-project, and adjust settings for this project.

 

Note: there is no inheritance support in EurekaLog's settings.

 

 

See also:




Send feedback... Build date: 2023-09-11
Last edited: 2023-03-07
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/project_groups.php