mirror of https://github.com/dspinellis/UMLGraph
Remove CVS-specific code
This commit is contained in:
parent
9b9d7a8f30
commit
552db976fd
|
|
@ -123,18 +123,17 @@ public class TestUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Deletes the content of the folder, eventually in a recursive way (but
|
||||
* avoids deleting eventual .cvsignore files and CVS folders)
|
||||
* Deletes the content of the folder, eventually in a recursive way
|
||||
*/
|
||||
public static void cleanFolder(File folder, boolean recurse) {
|
||||
for (File f : folder.listFiles()) {
|
||||
if (f.isDirectory() && !f.getName().equals("CVS")) {
|
||||
if (f.isDirectory()) {
|
||||
if (recurse) {
|
||||
cleanFolder(f, true);
|
||||
if (f.list().length == 0)
|
||||
f.delete();
|
||||
}
|
||||
} else if (!f.getName().equals(".cvsignore")) {
|
||||
} else {
|
||||
f.delete();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,9 +88,6 @@ public class UmlDocTest {
|
|||
*/
|
||||
private static void compareDocletOutputs(List<String> differences, File refFolder,
|
||||
File outFolder) throws IOException {
|
||||
if(refFolder.getName().equals("CVS"))
|
||||
return;
|
||||
|
||||
if (!refFolder.exists() || !refFolder.isDirectory())
|
||||
throw new IllegalArgumentException("Reference does not exist or is not a folder: "
|
||||
+ refFolder.getAbsolutePath());
|
||||
|
|
|
|||
Loading…
Reference in New Issue