I have a repository called "Random_Projects". Under it, I have small Java mini-projects.
Let's say it look something like this:
Random_Projects
|__ Some_project
| |
| |__ build
| | |__ <some files>
| |
| |__ lib
| | |__ <some files>
| |
| |__ src
| |__ source_code_1.java
| |__ another_source.java
|
|__ Different_Project
| |
| |__ build
| | |__ <some files>
| |
| |__ lib
| | |__ <some files>
| |
| |__ src
| |__ different_source.java
| |__ source_different.java
|
|__ <more projects with same structure>
The only things I need to be sync between my machine (via SVN) is the src
folder and the content inside it.
How should I configure my SVN to ignore everything except for the src
folder of each java mini-projects in my _Random_Projects_ repository?
EDIT #1
So the answer in this post shows that sparse checkouts might solve the issue. However, from what I read, it is used only when the repo has all the files and you want to only retrieve (update) specific files/directories.
My case is different because I have to download everything except for the source folder from a different source. To top it off, my targeted directory is under a directory of unknown name (so what I want to be versioned is: repo/*/src/*
)
In short:
Is there a way to have SVN automatically version files in this pattern: ./*/src/*
?