Skip to content

Commit

Permalink
Minor test helper improvement (to avoid issues with concurrent direct…
Browse files Browse the repository at this point in the history
…ory creation on file system and improve error reporting)
  • Loading branch information
asoldano committed Jul 30, 2015
1 parent f13dc8c commit 26ebcba
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -421,9 +421,9 @@ public static File assertArchiveDirExists()
if (testArchiveDir == null)
throw new IllegalArgumentException("Cannot create archive - system property '"
+ JBossWSTestHelper.SYSPROP_TEST_ARCHIVE_DIRECTORY + "' not set.");
if (!archiveDir.mkdirs())
if (!archiveDir.mkdirs() && !archiveDir.exists())
throw new IllegalArgumentException("Cannot create archive - can not create test archive directory '"
+ archiveDir.getAbsolutePath() + "' not set.");
+ archiveDir.getAbsolutePath() + "'");
}
return archiveDir;
}
Expand Down

0 comments on commit 26ebcba

Please sign in to comment.