Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for JENKINS-21195
  • Loading branch information
pruiz committed Jan 2, 2014
1 parent 82d4da2 commit 0a67f16
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ public File convert(XUnitToolInfo xUnitToolInfo, File inputFile, File workspace,
final String JUNIT_FILE_POSTFIX = ".xml";
final String JUNIT_FILE_PREFIX = "TEST-";
File parent = new File(junitOutputDirectory, inputMetric.getToolName());
if (!parent.mkdirs()) {
if (!parent.exists() && !parent.mkdirs()) {
throw new XUnitException("Can't create " + parent);
}
File junitTargetFile = new File(parent, JUNIT_FILE_PREFIX + inputFile.hashCode() + JUNIT_FILE_POSTFIX);
Expand Down

0 comments on commit 0a67f16

Please sign in to comment.