Recent

Author Topic: ProjectTemplates - Copy subfolders/files  (Read 609 times)

Int3g3r

  • New Member
  • *
  • Posts: 27
ProjectTemplates - Copy subfolders/files
« on: May 19, 2025, 02:34:33 pm »
Hello

Is it possible to copy specific folders / files from a template when creating a project?

For example:
I would like the following folders / files to be copied when creating a project:

- sql/EmptyDB.sql
- sqlite32/sqlite3.dll
- sqlite64/sqlite3.dll

Can I somehow define this in the Project.ini?
Or do I have to copy the files manually?

Regards Int3g3r

paweld

  • Hero Member
  • *****
  • Posts: 1422
Re: ProjectTemplates - Copy subfolders/files
« Reply #1 on: May 19, 2025, 02:41:28 pm »
Add a line to the “Project.ini” file:
Code: INI  [Select][+][-]
  1. Recurse=1
Best regards / Pozdrawiam
paweld

Int3g3r

  • New Member
  • *
  • Posts: 27
Re: ProjectTemplates - Copy subfolders/files
« Reply #2 on: May 20, 2025, 08:42:02 am »
Add a line to the “Project.ini” file:
Code: INI  [Select][+][-]
  1. Recurse=1

I already found this, did not work for me:

Code: INI  [Select][+][-]
  1. [Variables]
  2. PROJNAME=Projektname
  3.  
  4. [Project]
  5. Name=Template_EmptySQLITE3
  6. Recurse=1
  7.  

I tried it in every section.
Do i miss something?
Does the "Recurse" parameter only support *.pas files?
I want to move *.dll, *.sql.

(Lazarus 3.6, FPC 3.2.2, x86_64-win64)

Regards Int3g3r
« Last Edit: May 20, 2025, 08:51:13 am by Int3g3r »

paweld

  • Hero Member
  • *****
  • Posts: 1422
Re: ProjectTemplates - Copy subfolders/files
« Reply #3 on: May 20, 2025, 11:40:44 am »
Ahh, I forgot that I use my own redesign of the ProjectTemplates component.

Attached is the version I'm using. Uninstall the component you are currently using (Menu > Package > Install/Uninstall Packages .... > find “projtemplate” on the right side > select them > Unistall selection > Rebuild IDE) and then install the component from the attachment: Menu > Package > Open Package File (.lpk) ... > select “projtemplates.lpk” from the extracted folder > Open > Use > Install > Yes.
Best regards / Pozdrawiam
paweld

Int3g3r

  • New Member
  • *
  • Posts: 27
Re: ProjectTemplates - Copy subfolders/files
« Reply #4 on: May 26, 2025, 03:48:52 pm »
Ahh, I forgot that I use my own redesign of the ProjectTemplates component.

Attached is the version I'm using. Uninstall the component you are currently using (Menu > Package > Install/Uninstall Packages .... > find “projtemplate” on the right side > select them > Unistall selection > Rebuild IDE) and then install the component from the attachment: Menu > Package > Open Package File (.lpk) ... > select “projtemplates.lpk” from the extracted folder > Open > Use > Install > Yes.

Thank you.
Unfortunately, it still does not work.

Project.ini
Code: [Select]
[Variables]
PROJNAME=Projektname

[Project]
Name=Template_EmptySQLITE3
Recurse=1

The following folders and files are not copied:
/sql/EmptyDB.sql
/sqlite32/sqlite3.dll
/sqlite64/sqlite3.dll


Regards Int3g3r
« Last Edit: May 26, 2025, 03:50:57 pm by Int3g3r »

 

TinyPortal © 2005-2018