Menu

--not-match-f not working for groupings

Help
2012-10-03
2012-10-11
  • Brad L Vandermoon

    i am trying to run "cloc-1.55.exe --by-file-by-lang --exclude-
    dir=target,.settings,main\java,sfx --not-match-f=(.TO.java|pom.xml) --read-
    lang-def=C:\dev\stuff\CLOC\lang-def.txt C:\dev\src\life\lusv\ui" on windows
    but get below error

    'pom.xml)' is not recognized as an internal or external command,
    operable program or batch file.

    i want to exlude those file types --not-match-f=(.TO.java|pom.xml) in my
    counting but CLOC will not not accept the grouping

     
  • Al Danial

    Al Danial - 2012-10-04

    You need to wrap your regex in double quotes, otherwise Windows will interpret
    your line as multiple commands.
    Use, for example,
    --not-match-f="(.TO.java|pom.xml)"

     
  • Brad L Vandermoon

    Nice ... thank you!

     

Log in to post a comment.