Skip to content

Commit

Permalink
Merge pull request #14 from pruiz/JENKINS-21195
Browse files Browse the repository at this point in the history
Simple fix for JENKINS-21195
  • Loading branch information
gboissinot committed Jan 2, 2014
2 parents 82d4da2 + 0a67f16 commit c64b39e
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 c64b39e

Please sign in to comment.