Menu

#18 Create project template

v1.0_(example)
open
nobody
None
5
2015-11-17
2015-11-17
Tomer
No

Hi,

Is it possible to create my own project template?
For example, I would like that some files\folders will be excluded as default.

Is it enough to simply copy ".project" file and edit its name?

Thanks,
Tomer

Discussion

  • StevenAZ

    StevenAZ - 2015-11-17

    In a nut shell, yes. If I remember correctly, "Save As" and renaming the project name will do what you want.

    I created a script which I thought I posted online somewhere to create project files for Eclipse & SVE. I thnk that this is a really important part of "industrializing" Eclipse at a given company. I'll look for it and post a link here.

    The script:
    - Generated a .project file
    - Added a project name and blindly extracted all environment variables
    - The script can be easily modifed to "filter unwanted files" by default such as compiled libraries etc. which makes Eclipse more "light weight". i.e. Ignore the simulator compiled directory etc.
    - Created a .svproject file
    - Added a default files.f (think it was a command line option)

    I am using the script when I create a new database, added a "make eclipse" target to the top makefile, which runs the script (using some enviroment variables to dynamically create the project name etc).

    Depending on your project setup, the environment variable thing may or may not be important. The most obvious place where this might show up is inside your "files.f" files where you may have a line something like this:

    -f ${PATH_TO_SUBMODULE}/rtl/files.f
    

    This allows you to have multiple projects open simultaneously, and have SVE pick the correct files for you as you traverse your project.

     

    Last edit: StevenAZ 2015-11-17

Log in to post a comment.