I have a directory tree under accurev. In this tree I have a directory work which I want to exclude from versioning for good (including subdirectories). Can I use .acignore?
Yep, you'll need two entries in .acignore for that: one to exclude the directory and the other to exclude its contents (including sub-directories), e.g
myproject/bin/Debug
myproject/bin/Debug/*
Just keep/promote the .acignore file in the parent of the "myproject" subdirectory.
that is precisely what that file is for.
just add an entry like this to exclude the "work" directory:
path/to/directory/work
or, if you want to exclude all files and folders named "work" do this:
**/work
i just tested this to ensure it will work. under accurev version 5.7, you do not require a separate entry to exclude the contents of "work". however, i wouldn't recommend using the "**" wildcard for such a generic file name "work".
if you want to share your .acignore file with other users of your project be sure to promote the .acignore file itself so that others can pull it down.
this is the .acignore file that i put in the root of any accurev repository on my machine to exclude standard maven, intellij, eclipse, and git files:
**/target
**/.idea
**/.metadata
**/.classpath
**/.project
**/.settings
**/.git
**/*.iml
**/*.ipr
**/.gitignore
**/atlassian-ide-plugin.xml
that said, i did once have a colleague break our continuous integration build by creating a package named "target", so use that one with caution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With