I am using SVNKit in my application. I have a scenario wherein certain files should be ignored when doing svn operations. i.e. I need to set the svn:ignore property for certain patterns.
How do I do that using SVNKit?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use the ISVNOptions class.
It has a
addIgnorePattern()function which should allow you to ignore file based on a given pattern.If you want to ignore ‘ignore’ within a specific directory, you have to set
svn:ignoreproperty on its parent directory, not on the file itself (as being ignored that file will never be added to repository).To ignore more than one file in a directory,
svn:ignoreproperty value should contain a line for each ignored file, e.g:As soon as property is set, commit directory to make new property value be stored in repository.