Hi
My developer colleagues have an enormous and complex directory tree of development files checked into Subversion.
I need to edit files (called "POM.xml" files) containing metadata on the contents of the directory tree. I have utterly no interest in any of the other files in the directory tree.
What I'd like to do is check out the whole directory tree but with only the files named "pom.xml". (What I need to do is add meta-information on localization into each pom.xml file, if you're curious.)
To give a very simplified example, let's say the the following structure is checked in in Subversion (Directories in upper case, files in lower case):
ROOT
TRUNK
SUPERPROJECT1
PROJECT1
project1.cpp
project1.h
pom.xml
BIN
project1.dll
PROJECT2
project2.cpp
project2.h
pom.xml
BIN
project2.dll
PROJECT3
project3.cpp
project3.h
pom.xml
BIN
project3.dll
PROJECT4
project4.cpp
project4.h
pom.xml
BIN
project4.dll
PROJECT5
project5.cpp
project5.h
pom.xml
BIN
project5.dll
VERSION1
SUPERPROJECT1
PROJECT1
project1.cpp
project1.h
pom.xml
BIN
project1.dll
PROJECT2
project2.cpp
project2.h
pom.xml
BIN
project2.dll
PROJECT3
project3.cpp
project3.h
pom.xml
BIN
project3.dll
PROJECT4
project4.cpp
project4.h
pom.xml
BIN
project4.dll
VERSION2
SUPERPROJECT1
PROJECT1
project1.cpp
project1.h
pom.xml
BIN
project1.dll
PROJECT2
project2.cpp
project2.h
pom.xml
BIN
project2.dll
PROJECT3
project3.cpp
project3.h
pom.xml
BIN
project3.dll
PROJECT4
project4.cpp
project4.h
pom.xml
BIN
project4.dll
What I want to extract, edit and commit is something like the following (i.e. the full directory tree, but with only the pom.xml files at the relevant points. For reasons of disk space, process security and workflow logic, I don't want to check out any other files):
ROOT
TRUNK
SUPERPROJECT1
PROJECT1
pom.xml
PROJECT2
pom.xml
PROJECT3
pom.xml
PROJECT4
pom.xml
PROJECT5
pom.xml
VERSION1
SUPERPROJECT1
PROJECT1
pom.xml
PROJECT2
pom.xml
PROJECT3
pom.xml
PROJECT4
pom.xml
VERSION2
SUPERPROJECT1
PROJECT1
pom.xml
PROJECT2
pom.xml
PROJECT3
pom.xml
PROJECT4
pom.xml
I can't seem to find a simple Subversion command that lets me do this.
If anyone can help me I'd be very grateful. I'd like to avoid having to write a utility to do this job. ... if possible.
Start Free Trial