Skip to content

Commit

Permalink
#510 Cannot run Qulice twice on the same project without 'clean'
Browse files Browse the repository at this point in the history
  • Loading branch information
HDouss committed Dec 29, 2015
1 parent ed6cb45 commit 70d0aba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public void validate(final Environment env) throws ValidationException {
private Configuration configuration(final Environment env) {
final File cacheFile =
new File(env.tempdir(), "checkstyle/checkstyle.cache");
if (!cacheFile.getParentFile().mkdirs()) {
final File parent = cacheFile.getParentFile();
if (!parent.exists() && !parent.mkdirs()) {
throw new IllegalStateException(
String.format(
"Unable to crate directories needed for %s",
Expand Down

0 comments on commit 70d0aba

Please sign in to comment.