How to count number of non-derived files in an Eclipse project -
Then, how to calculate the number of files in the Elypes project, with the specific requirement that the derivative The resources should not be counted. (Otherwise it can easily use Unix command line tools) Linked and virtual resources can not be considered, although bonus points if you do.
Ah, found a proper way to do this: Open the file search dialog, "Text containing text:" Delete all the text in the field, you want to choose "File Name Pattern" (for all files that will be ""), and then you want the scope (workspace, selected resource, etc.) to be selected . Perform a search and then see the match's count in search view. Here is the key "text containing:" field. If it is "", then it just matches the lines instead of the file. I originally tried to use a regexp which only once per file, such as "\ A (. | \ R) )? " , Which works to a certain extent (all corresponds to non-empty, non-binary files), but only empty text field solutions will find all the files in the Eclipse processing model (including linked and virtual folders, But not derivative or team-personal resources).
Comments
Post a Comment