Author Topic: Adding files to a project / using wildcards  (Read 2775 times)

gillevk

  • Guest
Adding files to a project / using wildcards
« on: January 04, 2016, 10:19:16 am »
Hi,

I'm very new to Codeblocks, so this is a newbie question : I would like to add all files with the exact name "Makefile" and "makefile" to my project, and I'm also trying to add them in a separate folder under project tree. No success to do both - I can filter using all wildcards with <something>.* extension. But when trying to filter for no-extension files, codeblocks just won't do what I expect.
What am I doing wrong?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Adding files to a project / using wildcards
« Reply #1 on: January 09, 2016, 12:46:00 pm »
This seems indeed to be a bug...
Can you add a ticket on the sf tracker, so it won't get lost? ( http://sourceforge.net/p/codeblocks/tickets/ )


[Edit1]
for me it works.
On the project right click ->Project Tree ->Edit File Types& Ca... -> Add -> "Makefile" as name (is not critical) ->"*" (without "") in the File Masks ->Ok

If you don't do this it will simply be putted in the "Oters" folder

[Edit2]
If you add the files with Project->Add files recursively you have to enable the tick in the dialog that pops up and asks you "Select the files to add to the project"
« Last Edit: January 09, 2016, 12:54:20 pm by BlueHazzard »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Adding files to a project / using wildcards
« Reply #2 on: January 09, 2016, 01:04:47 pm »
I think i have misunderstood your question. You are talking about the "Select the files to add to the project" and the "Wildcard select" option?

This seems indeed to be a bug...
Can you add a ticket on the sf tracker, so it won't get lost? ( http://sourceforge.net/p/codeblocks/tickets/ )


[Edit1] it works if you input "*makefile*" or "*makefile"
« Last Edit: January 09, 2016, 01:08:33 pm by BlueHazzard »