Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] List of all files and folders excluded from built

Thanks, your code looks quite good and in a first test all worked fine.
I also worked before with ICSourceEntry, but tried this:
        IPath path = res.getFullPath();
        for( ICSourceEntry entry : sourceEntries)
        {
           
            if(CDataUtil.isExcluded(path, entry))
            {
              // do something
            }
        }

Didnt get it worked properly, but now it looks good. Thanks for your quick help

Patrick


 
Hi,
you could probably do something like this (input to the function is a build configuration). Not sure if this is the proper way to do it, but this is how I do it ;).

public void getExcludedFiles(IConfiguration configuration) {
  ICSourceEntry[] sourceEntries = configuration.getSourceEntries();
  for(ICSourceEntry se : sourceEntries) {
    for(IPath ip : se.getExclusionPatterns()){
      System.out.println(ip)
    }
  }
}

(I have not tested the above code, you might need to do some small changes).

/Mikael


On Tue, Sep 30, 2008 at 4:15 PM, <patrick.schmitt@xxxxxxx> wrote:
Hello,
i am again Extending CDT with a own Build Property TAB that shows all excluded files/folders from the current build configuration. Now i have little problems to get all exlcuded files/folders in a porper way. Can anybody just give me a little hint what would be the smartest way to list them.
Sincerly
Patrick

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top