Skip to content

Commit

Permalink
Remove CVS-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
foxeng committed Apr 9, 2019
1 parent 9b9d7a8 commit 552db97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/test/java/org/umlgraph/test/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,17 @@ public static void printList(PrintWriter pw, String message, List<?> extraOut) {
}

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

Expand Down
3 changes: 0 additions & 3 deletions src/test/java/org/umlgraph/test/UmlDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ private static void runTest(List<String> differences) throws IOException {
*/
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());
Expand Down

0 comments on commit 552db97

Please sign in to comment.