issues with --ignore-dir

173 views
Skip to first unread message

Brian Masson

unread,
Jul 6, 2011, 3:18:43 PM7/6/11
to Clone Digger general
Hi, New to clonedigger - i'm trying to skip some third party folders
and some subfolders.
here's my usage

#install via:
easy_install -U clonedigger
#from the root of the project i run this:
clonedigger --ignore-dir=third_party,test,static,*/migrations --cpd-
output -o ../reports/clonedigger.xml .



this is a python app


i assume that */migrations isn't correct? but it still hits
third_party,test,etc

help?

Brian Masson

unread,
Jul 13, 2011, 1:56:46 PM7/13/11
to Clone Digger general
didn't work.
I've installed via easy_install - into virtualenv - unfortunately
there's just the executable (ubuntu) in that folder
running from there still ignores the ignores.
can you shine some light into what classes are needed? I can modify
my
class_path
odd that missing classes allow it to work, but only mess up the
ignores?
-Brian

Peter Bulychev

unread,
Jul 14, 2011, 12:12:03 PM7/14/11
to clonedigg...@googlegroups.com
Hi Brian,

first of all, I recommend to get SVN copy of Clone Digger.

Unfortunately I don't how does Clone Digger work in virtualenv, but you don't have to install Clone Digger in order to run it.
You can just run Clone Digger from SVN directory.

You can use the following syntax to ignore several dirs:
#ls 1
1.py  ignore_1  ignore_2
#python ./clonedigger.py 1/ --ignore-dir=ignore_1 --ignore-dir=ignore_2
... it ignores 1/ignore_1 and 1/ignore_2
(I'm attaching archive with folder "1")

Note, that ignore_1 and ignore_2 are relative paths. 
Unfortunately Clone Digger doesn't use os.path methods to ignore dirs, thus if you supply "--ignore-dir=ignore_1/" it will not ignore  this directory just because "ignore_1/" != "ignore_1"

2011/7/13 Brian Masson <br...@waveaccounting.com>
--
You received this message because you are subscribed to the Google Groups "Clone Digger general" group.
To post to this group, send email to clonedigg...@googlegroups.com.
To unsubscribe from this group, send email to clonedigger_gen...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/clonedigger_general?hl=en.




--
Best regards,
   Peter Bulychev.
1.zip
Reply all
Reply to author
Forward
0 new messages