Menu

#118 Create supprt for *.properties files

v1.65
closed
nobody
None
1
2016-02-19
2015-12-29
Anonymous
No

In order to calculate KLOC for java based project, cloc-1.64.exe could not detect *.properties files.

Discussion

  • Anonymous

    Anonymous - 2015-12-30

    In order to add new type of file search first of all the following command has to be run,

    >>cloc-1.65.exe --write-lang-def=my_definitions.txt

    This will create a my_definitions.txt file in the same directory.
    After that open that file and delete all the lines. Then add,

    Properties
        filter remove_matches #
        extension properties
        3rd_gen_scale 1.36
    

    This will consider all the properties files by segregating them by tag 'Properties' and remove all the comments starting with # tag.

    Then in order to use this definition the following commands should be run,

    >>cloc-1.64.exe --read-lang-def=my_definitions.txt dir1 ...

    For further information check http://cloc.sourceforge.net/#custom_lang

     
  • Al Danial

    Al Danial - 2016-02-19
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel