Remove CVS-specific code

This commit is contained in:
Fotis Xenakis 2019-04-09 18:33:04 +03:00
parent 9b9d7a8f30
commit 552db976fd
2 changed files with 3 additions and 7 deletions

View File

@ -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();
}

View File

@ -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());